Skip to content

Feature Request: Session Resumption for Claude Code CLI #1340

@metaColin

Description

@metaColin

Problem

Terminal crashes and disconnections currently result in complete loss of context and work progress in the Claude Code CLI. Unlike the web interface which offers the ability to resume a previous session, CLI users must start from scratch after any interruption, leading to significant productivity loss and frustration. CLAUDE.md is proving to be insufficient for re-teaching claude-code what it needs to know in order to effectively resume a prior session.

Proposed Solution

Implement a session resumption feature for Claude Code CLI that:

  • Automatically saves session state at regular intervals
  • Allows users to resume their most recent session after a crash or disconnection
  • Provides a command to list and select from previous sessions (e.g., claude resume or claude sessions list)
  • Preserves all context, including file reads, searches, and conversation history

User Impact

This would significantly improve the CLI experience by:

  • Preventing loss of complex contextual knowledge about codebases
  • Eliminating repetitive work explaining project requirements
  • Making the CLI version equally resilient to the web version
  • Supporting long-running development tasks that are prone to interruption

Technical Considerations

  • Storage of session data should respect security and privacy constraints
  • Session resumption should be lightweight and quick to initialize
  • Consider offering configurable retention periods for saved sessions

Why This Matters

Power users who prefer CLI interfaces shouldn't have fewer features than web users. Session resumption is especially critical in terminal environments where disconnections and crashes are more common than in browser interfaces. Currently I am so frustrated by this oversight I am looking for a Claude-Code alternative but I wouldn't need one if Anthropic would introduce this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions