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
2025-08-27 09:18:15 +00:00
committed by GitHub
parent ea347b0aa1
commit e5c0614e88
+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
})?;