fix(haivemind): restore deferred startup
Some checks failed
CI / check (push) Has been cancelled

Start engine only after MainScreen mounts, while preserving explicit MainScreen widget lookup.
This commit is contained in:
2026-08-20 14:22:54 +03:00
parent e8b2dfda36
commit b8cb8908e7
2 changed files with 10 additions and 0 deletions

View File

@@ -1,5 +1,14 @@
--- a/haivemind_tui.py
+++ b/haivemind_tui.py
@@ -1197,0 +1198,8 @@
+ def on_mount(self) -> None:
+ app = self.app
+ if (
+ getattr(app, "_prompt", None) is not None
+ and getattr(app, "_config", None) is not None
+ ):
+ app.start_run(app._prompt, app._config)
+
@@ -1220,13 +1220,13 @@
self._engine: HaivemindEngine | None = None
self._run_started = False