diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs index ae789a3f92..a215fbc8fd 100644 --- a/crates/assistant/src/assistant_panel.rs +++ b/crates/assistant/src/assistant_panel.rs @@ -2065,7 +2065,7 @@ impl ConversationEditor { workspace: workspace.downgrade(), _subscriptions, }; - this.update_active_buffer(workspace, cx); + cx.defer(|this, cx| this.update_active_buffer(workspace, cx)); this.update_message_headers(cx); this }