Skip to content

[BUG] Claude Desktop archived an active Remote Control session overnight without user action (history inaccessible, no undo) #67811

Description

@jharlas

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

A long-running Remote Control session (started with /remote-control from Claude Code CLI on a Linux host, attached in the Claude Desktop app) was archived overnight with no user action. In the morning the session no longer appeared in the Desktop session list and its history was not accessible from Desktop. No archive command, shortcut, or prompt was triggered by the user — the machine was idle overnight.

This is the second history-loss event for the same workflow within a week:

  1. Earlier, an accidental Ctrl+T press in Claude Desktop archived the remote-control session and its visible history instantly, with no confirmation and no way to undo (related feature request: [FEATURE] Unarchive Claude Code sessions in desktop app option #30869 — no unarchive in Desktop).
  2. This time the archive happened autonomously overnight, with no keypress at all.

The underlying CLI session was unaffected (the terminal session continued to work and history is intact in ~/.claude/projects/.../*.jsonl), so this appears to be Desktop-side archive state being applied to a live remote-control session — possibly an idle/auto-archive policy. Related: #39178 reported server-side auto-archive during idle periods (closed as stale), and #65838 shows archive state is tracked per-client.

Expected Behavior

  • A remote-control session that is still alive on the CLI side should never be auto-archived by a client app, regardless of idle time.
  • Archiving should require explicit user intent (and ideally a confirmation for sessions with an active backing process), and should be reversible from the Desktop UI.

Steps to Reproduce

  1. On a Linux host, run claude and start /remote-control.
  2. Attach to the session from the Claude Desktop app.
  3. Leave both ends idle overnight (~8+ hours).
  4. Open Claude Desktop in the morning: the session is archived / missing from the session list; history is not viewable from Desktop. The CLI session is still running.

(Not yet confirmed deterministic — happened once overnight; the earlier Ctrl+T loss was a separate, user-triggered path.)

Environment

  • Claude Code CLI: 2.1.175, Linux 5.15.0-173 x86_64 (remote-control host)
  • Client: Claude Desktop app (session list / archive behavior is on the Desktop side)

Activity

  1. jharlas commented on Jun 12, 2026

    @jharlas
    Author

    Likely related: #59451 — sessions auto-archiving every 30–90 minutes while still active (macOS, since ~2026-05-09), which also drops the mobile bridge while the CLI session stays alive. Same signature as the overnight archive reported here: client-visible archive state applied to a live session with no user action, history then inaccessible from the app. That report has a differential (only certain cwds affected); in my case the host is Linux and the archive showed up in Claude Desktop after an overnight idle period.

  2. jharlas commented on Jun 12, 2026

    @jharlas
    Author

    Desktop environment details: Claude for Mac v1.12603.1 (3df4fd) on a MacBook Pro, with a second Claude Desktop window for the same session open on Windows 11. So two desktop clients were attached to the remote-control session when the overnight archive happened — relevant given #65838 (archive state is per-client), and it matches #59451 being macOS. Happy to provide the Windows client version or logs from either machine if useful.

  3. github-actions commented on Jun 12, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. [BUG] Remote Control session archived and becomes unviewable after ~10 minutes of idle #32651
    2. Sessions auto-archiving every 30-90 min when launched from specific cwd bucket (since 2026-05-09) #59451
    3. [BUG] --resume fails with error_during_execution when session was auto-archived during idle period #39178

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  4. github-actions commented on Jun 15, 2026

    @github-actions

    This issue has been automatically closed as a duplicate of #32651.

    If this is incorrect, please re-open this issue or create a new one.

    🤖 Generated with Claude Code

  5. github-actions commented on Aug 17, 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.

  6. locked as resolved and limited conversation to collaborators on Aug 17, 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

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions