Skip to content

fix(cli): preserve state after interrupted runs - #1105

Closed
c8dhjp4tyv-bit wants to merge 3 commits into
CodebuffAI:mainfrom
c8dhjp4tyv-bit:fix/preserve-session-state-after-interrupt
Closed

fix(cli): preserve state after interrupted runs#1105
c8dhjp4tyv-bit wants to merge 3 commits into
CodebuffAI:mainfrom
c8dhjp4tyv-bit:fix/preserve-session-state-after-interrupt

Conversation

@c8dhjp4tyv-bit

Copy link
Copy Markdown

Summary

  • checkpoint the latest run state into the in-memory continuation ref on abort
  • retain the latest snapshot after non-abort run errors so the next prompt continues history
  • guard late snapshots and results from superseded runs with a generation token
  • add abort checkpoint callback regression coverage

Fixes #1054

Validation

  • targeted CLI tests: 106 passed
  • CLI typecheck: existing missing tar and react-dom/server declarations; no changed-file errors
  • Prettier check passed
  • git diff --check passed

@c8dhjp4tyv-bit
c8dhjp4tyv-bit force-pushed the fix/preserve-session-state-after-interrupt branch from ea203a5 to b00d9e9 Compare August 23, 2026 21:07
@c8dhjp4tyv-bit
c8dhjp4tyv-bit deleted the fix/preserve-session-state-after-interrupt branch August 24, 2026 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session state is lost after free session expires or run is interrupted

1 participant