Add auto-compaction events to AgentSession

- Add AgentSessionEvent type extending AgentEvent with auto_compaction_start/end
- Emit events when auto-compaction starts and completes
- TUI shows loader during auto-compaction with escape to cancel
- Rebuilds chat UI when auto-compaction succeeds
This commit is contained in:
Mario Zechner 2025-12-09 01:51:51 +01:00
parent 803d4b65ee
commit 91b89578c1
3 changed files with 109 additions and 26 deletions

View file

@ -3,9 +3,10 @@
*/
export {
type AgentEventListener,
AgentSession,
type AgentSessionConfig,
type AgentSessionEvent,
type AgentSessionEventListener,
type CompactionResult,
type ModelCycleResult,
type PromptOptions,