Files
kandev/apps/web/lib
João Salavisa dea2a07cfa feat: add context window usage display to task session (#66)
* feat: add context window usage display to task session

- Add TokenUsageDisplay component showing context window usage as a horizontal progress bar
- Add useSessionContextWindow hook with proper Zustand reactivity (subscribe to primitives)
- Add ContextWindowState to store with setContextWindow action
- Backend: propagate context_window data through orchestrator, watcher, and lifecycle events
- WebSocket handler extracts context_window from session.state_changed metadata
- Display positioned on left side of action bar, updates in real-time

* refactor: remove agent stream event WebSocket broadcasting

Agent stream events (message_chunk, tool_call, etc.) are now handled
internally by the lifecycle manager rather than being broadcast to
the frontend. Messages are accumulated and flushed as comments at
step boundaries.
2026-01-21 02:47:20 +00:00
..
2026-01-21 01:13:20 +00:00
2026-01-15 18:25:42 +00:00
2026-01-15 19:49:41 +00:00
2026-01-19 00:16:38 +00:00
2026-01-17 19:02:22 +00:00
2026-01-18 17:26:41 +00:00
2026-01-18 20:42:03 +00:00
2026-01-17 19:02:22 +00:00
2026-01-14 03:09:59 +00:00