Skip to content

[Web/Desktop UI] Active session auto-archived every ~5 minutes during normal interaction #59449

Description

@alvarengao

Bug: Active session auto-archived every ~5 minutes during normal interaction

Summary

The web/desktop client of Claude Code is automatically archiving sessions that are actively in use (human messages incoming and agent producing output). The "Esta sessão está arquivada / Desarquive-a para continuar a conversa" banner appears every 5 minutes or less, forcing the user to click "Desarquivar" before every new message.

Expected behavior

According to the docs, only background sessions with no actionable output for 5 minutes should be auto-archived. Sessions with active human-agent interaction should remain live indefinitely.

Actual behavior

A session with continuous interaction over 24+ hours (multiple commits, file edits, Bash commands, browser automation, deploys) is being archived every ~5 minutes, regardless of:

  • Frequency of user messages (under 5min apart)
  • Recency of agent output (tool calls completing continuously)
  • Whether the user is actively reading the response on screen

Reproduction

100% reproducible:

  1. Open Claude Code via web/desktop UI (not CLI)
  2. Start any session with active interaction
  3. Send messages and receive agent responses for ~5 minutes
  4. Banner appears: "Esta sessão está arquivada. Desarquive-a para continuar a conversa."
  5. User clicks "Desarquivar"
  6. Conversation resumes, then archives again within ~5 minutes

Diagnostic steps already exhausted by the user

  • ✅ Uninstalled the Claude mobile app — issue persists
  • ✅ Disabled Remote Control feature — issue persists
  • ✅ Signed out of all devices via claude.ai/settings → Sign out of all sessions — issue persists
  • ✅ Verified no extensions interfering (Dark Reader / similar tested via incognito) — issue persists
  • ❌ No hooks configured in ~/.claude/settings.json (only theme: auto, agentPushNotifEnabled: true, inputNeededNotifEnabled: true)
  • ❌ No project-level .claude/settings.json exists

Confirmation that this is NOT agent-triggered

The agent (Claude itself, in the affected session) verified its own tool call history and never invoked mcp__ccd_session_mgmt__archive_session during the session. The deferred tool exists in the infrastructure but is not being called by the agent. This indicates the auto-archive is happening server-side or client-side, outside of agent action.

Environment

  • OS: Windows 10 Pro 10.0.19045
  • Client: Claude Code web/desktop UI
  • Model: Claude Opus 4.7 (1M context)
  • Session length when archive occurs: Variable, sometimes 30 seconds after "Desarquivar", typically within ~5 minutes
  • Activity profile: High — frequent file edits, Bash, browser automation, Firebase deploys

Impact

  • Severe UX disruption: user has to click "Desarquivar" before each message after the first archive
  • Loss of trust in product
  • Forces migration to CLI as only viable workaround

Suggested fixes

  • Treat sessions with any human message OR agent tool call in the last N minutes as "active" and exempt from auto-archive
  • OR: expose a setting in claude.ai/settings to disable auto-archive for active users
  • OR: warn the user before archiving so they can postpone

Additional context

This report was generated by the agent inside the affected session, after the user explicitly requested help diagnosing the issue. The session itself was archived at least 8 times during the diagnostic conversation.

Related issues

Activity

  1. added
    bugSomething isn't working
    platform:windowsIssue specifically occurs on Windows
    has reproHas detailed reproduction steps
    on May 15, 2026
  2. github-actions commented on May 15, 2026

    @github-actions

    Found 2 possible duplicate issues:

    1. Sessions auto-archiving every 30-90 min when launched from specific cwd bucket (since 2026-05-09) #59451
    2. Sessions auto-archiving within 30-90 min (only one project-dir bucket affected, started ~2026-05-09) #58446

    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

  3. added
    duplicateThis issue or pull request already exists
    and removed
    bugSomething isn't working
    has reproHas detailed reproduction steps
    platform:windowsIssue specifically occurs on Windows
    on May 19, 2026
  4. github-actions commented on May 19, 2026

    @github-actions

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

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

    🤖 Generated with Claude Code

  5. ciszere commented on Jun 4, 2026

    @ciszere

    +1 — same bug on Claude Desktop for Mac v1.9659.4.

    Trigger pattern: sessions get auto-archived shortly after a git push or PR merge in the active project. Reproduces consistently in our repo.

    Effect: shows "This session is archived. Unarchive it to continue the conversation." mid-task, breaking the flow.

    No related setting found in app preferences.

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

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