Skip to content

v0.8.6 feat: crash-recovery prompt — restore the in-flight turn after an unexpected exit #388

@Hmbown

Description

@Hmbown

Pitch

We already write pre-turn checkpoints to `~/.deepseek/sessions/checkpoints/latest.json` (the atomic-write work in #355). When `deepseek` starts and a checkpoint exists from a session that didn't shut down cleanly, prompt:

The previous session ended unexpectedly mid-turn. Restore?
[r]estore [s]tart fresh [d]elete checkpoint

Codex parity but better — we already have the checkpoint, we just don't surface it.

Implementation sketch

Acceptance

  • Crash-mid-turn → next launch shows the restore prompt.
  • Clean exit clears the checkpoint so no false prompt on next run.
  • Standard verification gates pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestv0.8.6Targeting v0.8.6

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions