You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Implement turn sequence management and stale context discard
- Added `turn_seq` attribute to `_QueuedItem` for tracking user turns.
- Introduced `discard_stale` method in `ContextInjectionQueue` to remove queued items from older turns, preventing cross-turn carryover.
- Updated `SessionState` to include `user_turn_seq` and `turn_output_seen` for managing user activity and turn state.
- Enhanced `WebSocketHandler` to register user activity, manage turn sequences, and handle silent turns with a watchdog mechanism.
- Modified context injection methods to include `turn_seq` for accurate tracking.
- Added tests for stale context discard functionality and silent turn handling.
- Created a script to generate an animated GIF from system architecture SVG for documentation purposes.
0 commit comments