Persistent session context across restarts

Resolved 💬 6 comments Opened Dec 3, 2025 by ashwin-koko Closed Mar 5, 2026

Feature request: Save session context to tmp and offer to restore on restart

When Claude Code restarts (new session), it loses all conversation history and context about the task being worked on. This is problematic for complex, multi-file debugging sessions.

Suggested improvement:

  • Periodically save session context (conversation history, current task list, file edits in progress) to a tmp file
  • On startup, ask the user if they'd like to load the previous session context
  • This would allow seamless continuation of work without losing context

This would be especially valuable for:

  • Long debugging sessions across multiple files
  • Complex refactoring tasks
  • Iterative bug fixes where context builds up over time

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗