Skip to content

Archiving a Remote Control session also archives and kills a different, live session with the same name #83917

Description

@jfru

What happened

Archiving an old, finished Remote Control session on claude.ai also archived — and terminated — a different, currently live session that happened to share the same Remote Control name. Three live sessions died in a single archiving pass.

Unarchiving restores the web record, but the local claude process is already gone, so the session comes back blank/unusable.

Setup

Sessions run on an always-on Mac Mini, started as:

tmux new-session -d -s cc-<project> "claude --remote-control cc-<project>"

The launcher reused one Remote Control name per project (cc-thyself, cc-birds_nyc, …), so over weeks many distinct sessions shared a single name. Sessions are steered from the iOS app / claude.ai.

Steps to reproduce

  1. Start a Remote Control session named foo. Use it, then stop it.
  2. Later, start a new Remote Control session, also named foo. Leave it running.
  3. On claude.ai, archive the old finished foo session.
  4. The live foo session is also archived, and its local claude process exits — the tmux session dies with it.

Expected

Archiving affects only the selected session, and never terminates a session that is currently live.

Actual

Archiving one session archived and killed same-named sessions, including a live one mid-task. Unarchive does not (and cannot) bring the terminated process back.

Notes

  • Reproduced 2026-08-04 across three separate projects in one archiving pass.
  • Also observed: immediately re-creating a Remote Control session with a name that was just used caused it to exit within ~20s, while using a fresh unique name worked fine — consistent with sessions being keyed by name rather than by id.
  • Workaround: give every launch a unique --remote-control name (e.g. a timestamp suffix).

Environment

  • macOS 15 (Darwin 24.6.0), Apple silicon
  • Claude Code CLI 2.1.221, Remote Control sessions inside tmux

Activity

  1. jfru commented on Aug 4, 2026

    @jfru
    Author

    Closing this — I misdiagnosed it, and the cause turned out to be local.

    The real cause was a cron job of mine (an hourly scheduler for one project) whose tmux lookup matched cc-* instead of cc-<that-project>. On the branch where it clears finished sessions, it killed every Remote Control session on the machine, including live ones belonging to unrelated projects. Its log shows exactly that at 12:07 and 13:07, matching the moment the sessions died.

    Because the underlying process was killed, those sessions then showed up as archived/dead on claude.ai, and "unarchive" could not bring them back — which is what led me to blame archiving. Archiving was a symptom, not the trigger.

    Leaving one observation in case it is useful: immediately re-creating a Remote Control session reusing a name that had just been used exited within ~20s, while the same command with a fresh unique name worked. That may be nothing, and I have not reproduced it deliberately. If it is worth its own report I will file a clean one with a proper repro rather than leave this inaccurate issue open.

    Apologies for the noise.

  2. github-actions commented on Sep 25, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  3. locked as resolved and limited conversation to collaborators on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions