Files
picoclaw/pkg
Administrator acd436acfe feat(agent): add session state rollback on hard abort
- Add initialHistoryLength field to turnState to snapshot session state at turn start
- Save initial history length in runAgentLoop when creating root turnState
- Implement session rollback in HardAbort via SetHistory, truncating to initial length
- Add TestHardAbortSessionRollback to verify history rollback after abort
- Import providers package in subturn_test.go for Message type

This ensures that when a user triggers hard abort, all messages added during
the aborted turn are discarded, restoring the session to its pre-turn state.
2026-03-16 21:49:58 +08:00
..
2026-03-08 18:22:15 +01:00
2026-03-16 00:08:16 +08:00
2026-03-01 18:17:32 +11:00
2026-03-13 14:04:02 +08:00
2026-03-13 14:04:02 +08:00
2026-03-04 10:21:59 +00:00