Start engine only after MainScreen mounts, while preserving explicit MainScreen widget lookup.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user