Administrator
a26a7db7d2
moved turnState and related code from subturn.go to a new turn_state.go file
Created /pkg/agent/turn_state.go (246 lines) containing:
- turnStateKeyType and context key management
- turnState struct definition
- TurnInfo struct and GetActiveTurn() method
- newTurnState(), Finish(), and drainPendingResults() methods
- ephemeralSessionStore implementation
- All context helper functions (withTurnState, TurnStateFromContext, etc.)
Updated /pkg/agent/subturn.go (428 lines) by:
- Removing the moved turnState struct and methods
- Removing unused imports (sync, session)
- Keeping SubTurn spawning logic, config, events, and result delivery
All tests pass and the code compiles successfully.
2026-03-17 14:11:38 +08:00
..
2026-03-03 18:25:00 +08:00
2026-03-06 16:04:31 +08:00
2026-03-10 17:13:44 +01:00
2026-03-16 14:31:32 +08:00
2026-03-01 18:17:32 +11:00
2026-03-10 15:14:09 +08:00
2026-03-13 16:43:00 +08:00
2026-03-14 12:09:11 +08:00
2026-03-14 12:09:11 +08:00
2026-03-17 12:50:32 +08:00
2026-02-27 16:35:07 +08:00
2026-02-19 22:05:15 +02:00
2026-02-18 21:48:23 +02:00
2026-03-10 15:14:09 +08:00
2026-03-16 00:08:16 +08:00
2026-03-17 12:50:32 +08:00
2026-03-17 12:50:32 +08:00
2026-03-17 14:11:38 +08:00
2026-03-05 09:51:18 +08:00
2026-03-05 09:51:18 +08:00
2026-03-17 14:11:38 +08:00