fix(web): handle chat stop hits

This commit is contained in:
Kayshen-X 2026-05-31 21:05:29 +08:00
parent 83fd78f293
commit 2aebc714ae

View file

@ -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;