agent chat: agent detection finishes on the start page (#3265)
This commit is contained in:
@@ -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"}}
|
||||
]
|
||||
Reference in New Issue
Block a user