Commit Graph

3 Commits

Author SHA1 Message Date
b8cb8908e7 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.
2026-08-20 14:22:54 +03:00
e8b2dfda36 fix(haivemind): query MainScreen instance directly instead of app default screen
Some checks failed
CI / check (push) Has been cancelled
App.query_one searches the app's default screen (_default), but #chat-log/#health-bar/etc. live on the pushed MainScreen. Every HaivemindApp handler failed with NoMatches at runtime. Hold a reference to the MainScreen instance and query it directly so widget lookup no longer depends on which screen is active.
2026-08-20 13:38:39 +03:00
2c5e64039a fix(haivemind): start engine after MainScreen mounts to avoid NoMatches on #chat-log
Upstream haivemind_tui.py started the engine synchronously in HaivemindApp.on_mount while MainScreen mounts asynchronously, causing ProbeStart handler to query #chat-log on the default screen (NoMatches). Move the start_run trigger into MainScreen.on_mount so it runs only once the screen is active.
2026-08-20 10:33:57 +03:00