[FEATURE] Display session ID on CTRL+C for easy resume

Resolved 💬 2 comments Opened Jan 10, 2026 by PaulRBerg Closed Jan 10, 2026

Problem

When a Claude Code session is terminated via CTRL+C, users lose the ability to easily resume that session. The session ID is not displayed, making it difficult to continue work that was interrupted.

Proposed solution

Display the session ID when a session is terminated, similar to how Codex handles this:

Token usage: total=8,895 input=8,880 (+ 3,840 cached) output=15
To continue this session, run claude --resume 019ba81f-93dc-7d62-a5b7-535d23a15e3d

This would allow users to:

  1. See their token usage before exiting
  2. Quickly resume interrupted sessions with a simple copy-paste command

Alternatives considered

  • Users can manually look up session IDs through logs or history, but this is cumbersome
  • Starting a new session loses all context from the previous conversation

Priority

Medium

Category

CLI commands and flags

View original on GitHub ↗

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