feat: compactのプログレス表示

This commit is contained in:
2026-05-09 03:11:53 +09:00
parent 584cbe406a
commit 41bce21339
4 changed files with 177 additions and 16 deletions
+15 -3
View File
@@ -78,9 +78,21 @@ pub enum ThinkingState {
}
pub enum CompactEvent {
Start,
Done { new_session_id: uuid::Uuid },
Failed { error: String },
/// Live block: compaction worker is running. `started_at` powers the
/// `Compacting... (Xs)` live timer.
Streaming { started_at: Instant },
/// Compaction ended cleanly with `CompactDone`.
Done {
new_session_id: uuid::Uuid,
elapsed_secs: Option<u64>,
},
/// Compaction ended with `CompactFailed`.
Failed {
error: String,
elapsed_secs: Option<u64>,
},
/// The TUI stopped observing events before a terminal compact event.
Incomplete { elapsed_secs: Option<u64> },
}
pub struct ToolCallBlock {