fix: clear stale in-flight state

This commit is contained in:
2026-07-27 15:54:08 +09:00
parent e20c8a1d0b
commit 1dc6429b87
8 changed files with 130 additions and 1 deletions
+6
View File
@@ -1030,6 +1030,12 @@ impl App {
"LLM stream interrupted; continuing generation ({attempt}/{max_attempts}): {reason}"
));
}
Event::InFlightCleared => {
self.assistant_streaming = false;
self.latest_llm_wait_event = None;
self.mark_orphan_tool_calls_incomplete();
self.current_tool = None;
}
Event::TextDelta { text } => {
self.latest_llm_wait_event = None;
self.append_assistant_text(&text);