# claude-code issue 112408: report the resume command with OSC 7577 (Program Resume Protocol) <!-- ref: @content/web/github/2026-11-27-resume-command-osc-7577-issue-112408 tags: [claude-code, resume, sessions] version: 2 updated_at: 2026-11-27T18:07:49.881Z --> **[Read the original](https://github.com/anthropics/claude-code/issues/112408)** *Synthesized from the GitHub issue text (7 reactions at harvest).* ## Core Thesis Terminals that restart their server end every claude process and bring panes back as plain shells; the Program Resume Protocol (OSC 7577) lets a program report its resume command so the terminal can re-run it. ## Key Insights - The request: when OSC7577_TOKEN is set, report `claude --resume <session id>` plus cwd on session start, /resume and /clear. - On a normal quit send clear=1; on SIGHUP, SIGTERM or terminal loss do not clear, so the terminal can resume. - The token must stay out of child processes (Bash tool, MCP servers, hooks). - A SessionStart and SessionEnd hook workaround exists today, but Claude Code captures hook output, so the hook has to find the tty itself. ## Actionable Takeaways - Directly parallel to the fleet's own resume and memento machinery: a native resume signal would remove the tmux-wrapping-a-dead-conversation failure mode. --- *Related: `@content/web/github/2026-11-26-opus-context-fills-faster-issue-112194` · `@content/web/github/2026-11-26-interactive-session-misclassified-background-issue-112133` · `@content/web/github/2026-11-26-autodream-silently-ignored-issue-112310` · `@content/web/github/2026-11-25-followups-scope-issue-112120` · `@content/web/github/2026-11-25-claude-code-v2-1-332`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*