- 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.
7 lines
72 B
JSON
7 lines
72 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(go test:*)"
|
|
]
|
|
}
|
|
}
|