agent chat: agent detection finishes on the start page (#3265)

This commit is contained in:
Adam Hickerson
2026-10-22 20:52:13 +00:00
committed by GitHub
parent 3b982ca371
commit 186096cbe6
2 changed files with 14 additions and 0 deletions
+3
View File
@@ -1599,6 +1599,9 @@ impl SolveApp {
if self.home.open {
home::show(self, ui);
if self.home.open {
// Agent detection runs in the background and is only received by `agent_chat::poll`
// Polling here is required for the detection to complete on Home
agent_chat::poll(self, ui.ctx());
// Preferences and Keyboard Shortcuts open from Home too (its links, the gear, Ctrl+,).
prefs::show(self, ui.ctx());
return;
@@ -0,0 +1,11 @@
[
{"note": "With the start page open (as at launch), the agent chat's frame work still runs: agent detection resolves (its \"Looking for agents…\" label goes away) and the Add-agent dialog opens from Settings' AI page."},
{"call": "ui.home", "params": {"open": true}},
{"expect": {"home": true}},
{"call": "ui.prefs", "params": {"open": "AI"}},
{"expect": {"home": true, "prefs": {"dialog": "AI"}}},
{"until": {"not_shown": "Looking for agents…"}},
{"expect": {"shown": "Add agent…"}},
{"click": {"handle": "prefs:ai_add"}},
{"until": {"shown_handles": ["ai_add:add"], "shown": "Add agent"}}
]