Ensure we use the new agent when opening the panel for the first time (#36988)

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra authored and GitHub committed 2025-08-27 09:18:15 +00:00
1 parent dc8a16a18c
commit 5193f4b712
1 file changed
+4
+4
View File
@@ -618,6 +618,10 @@ impl AgentPanel {
}
cx.notify();
});
} else {
panel.update(cx, |panel, cx| {
panel.new_agent_thread(AgentType::NativeAgent, window, cx);
});
}
panel
})?;