feat(ai): surface live AI generation status with smooth timing

This commit is contained in:
Abeautifulsnow authored and GitHub committed 2026-08-24 20:28:12 +08:00
1 parent 697a8efe6e
commit ff31f44b42
18 files changed
+1733 -25

No files matched your search

+10
View File
@@ -484,6 +484,16 @@ export type AgentEvent =
is_error: boolean;
}
| { type: "turn_end"; turn: number }
| {
/**
* The reply stream is fully consumed but the run is NOT yet confirmed
* successful — the CLI process may still exit non-zero or hang after
* closing stdout. Non-terminal: the UI may stop the reply animation on
* it, but must keep listening for the real `agent_end` (success) /
* `error` (failure).
*/
type: "response_complete";
}
| { type: "agent_end"; input_tokens?: number; output_tokens?: number }
| {
type: "context_compacted";