From 2aebc714aebf1f486b9f83ccda78275fa0cbb3f7 Mon Sep 17 00:00:00 2001 From: Kayshen-X Date: Sun, 31 May 2026 21:05:29 +0800 Subject: [PATCH] fix(web): handle chat stop hits --- crates/op-host-web/src/widget_host/press.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/op-host-web/src/widget_host/press.rs b/crates/op-host-web/src/widget_host/press.rs index ba8ddac6b..f9331eb9a 100644 --- a/crates/op-host-web/src/widget_host/press.rs +++ b/crates/op-host-web/src/widget_host/press.rs @@ -608,6 +608,11 @@ impl WidgetHost { self.mark_dirty(); return true; } + AIChatHit::Stop => { + self.editor_state.chat.stop_streaming(); + self.mark_dirty(); + return true; + } AIChatHit::Example(text) => { self.editor_state.chat.input = text; self.editor_state.chat.focused = true;