Skip to content

Commit 47b3e77

Browse files
committed
Ensure we use the new agent when opening the panel for the first time (#36988)
Release Notes: - N/A
1 parent e6fbcf1 commit 47b3e77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/agent_ui/src/agent_panel.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,10 @@ impl AgentPanel {
618618
}
619619
cx.notify();
620620
});
621+
} else {
622+
panel.update(cx, |panel, cx| {
623+
panel.new_agent_thread(AgentType::NativeAgent, window, cx);
624+
});
621625
}
622626
panel
623627
})?;

0 commit comments

Comments
 (0)