mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
a26a7db7d2
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.