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-17 14:11:38 +08:00
2026-03-06 19:58:23 +08:00
2026-03-08 18:22:15 +01:00
2026-03-13 23:08:55 +08:00
2026-03-09 16:39:33 +08:00
2026-03-16 00:08:16 +08:00
2026-02-19 11:48:17 +01:00
2026-03-06 20:46:52 +08:00
2026-02-24 21:52:25 +08:00
2026-02-24 23:57:13 +08:00
2026-02-28 12:21:54 +08:00
2026-03-01 18:17:32 +11:00
2026-03-13 15:41:18 +08:00
2026-03-13 14:27:46 +08:00
2026-03-05 14:53:26 +08:00
2026-02-28 12:21:54 +08:00
2026-03-11 14:29:42 +08:00
2026-03-12 09:47:01 +08:00
2026-03-13 14:09:40 +08:00
2026-03-06 13:10:20 +08:00
2026-03-11 19:22:20 +08:00
2026-03-13 14:04:02 +08:00
2026-03-11 19:22:20 +08:00
2026-03-17 12:50:32 +08:00
2026-03-13 14:04:02 +08:00
2026-03-04 10:21:59 +00:00