diff --git a/crates/ai/src/assistant.rs b/crates/ai/src/assistant.rs index 2376a1ff8764665d7a63a86a975f7820c789961e..a7028df7a0321ef250b3eadeb0ed3b8e733ee9af 100644 --- a/crates/ai/src/assistant.rs +++ b/crates/ai/src/assistant.rs @@ -386,10 +386,12 @@ impl AssistantPanel { ); }) } + + this.finish_inline_assist(inline_assist_id, false, cx); } + } else { + this.finish_inline_assist(inline_assist_id, false, cx); } - - this.finish_inline_assist(inline_assist_id, false, cx); } }), ], @@ -2837,6 +2839,7 @@ impl InlineAssistant { cx, ); } else { + self.confirmed = false; editor.set_read_only(false); editor.set_field_editor_style( Some(Arc::new(|theme| theme.assistant.inline.editor.clone())),