Repository navigation
Sessions auto-archiving within 30-90 min (only one project-dir bucket affected, started ~2026-05-09) #58446
Description
Activity
- addedbugSomething isn't workingSomething isn't workingplatform:macosIssue specifically occurs on macOSIssue specifically occurs on macOS
on May 12, 2026 Found 2 possible duplicate issues:
- Cowork desktop: session auto-archives in <60s of inactivity (Windows) #57945
- [BUG] Active session auto-archives within seconds of window focus loss (Windows) #57602
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
Corroborating report — macOS, same ~2026-05-09 onset, heavy-tool-use correlation confirmed
Reproducing this on a separate account/machine:
- Claude Code Desktop (FleetView), claude-code 2.1.138, macOS Darwin 25.4.0, Apple Silicon
- Model: claude-opus-4-7, effort medium
- Single affected project bucket:
-Users-<user>-Development-Jira
Strongly confirms the "heavy tool use accelerates archive" observation. Today's session ran ~6 PR cycles back-to-back (git commits, pushes,
gh properations, multiplecodex review/codex execsubprocess calls, parallel sub-agents). The session auto-archived repeatedly — including while the user was actively reading a response, with no idle period. Unarchive (per #57586) does not stick: re-archives within ~1–2 minutes.Ruled out as causes on our end:
- No
~/.claude/settings.json,keybindings.json, or plugins (clean config) - No scheduled tasks / routines
- Tested the orphan-cwd hypothesis: the session's bound git worktree had been deleted; we restored the worktree at its original path — did not stop the archiving. So orphan-cwd is not the (only) trigger.
The "one project-dir bucket affected" + "~2026-05-09 onset" + "heavy-tool-use correlation" pattern matches this report exactly. Given the GrowthBook-flag hypothesis in the original post, this looks like a server-side policy regression, not a local-config issue.
Requesting:
- A documented list of auto-archive triggers
- A
settings.jsonopt-out for auto-archive - Confirmation whether a GrowthBook flag can be rolled back for affected project buckets
- addedarea:agent-viewclaude agents TUI / --bg / FleetView / daemon bg sessionsclaude agents TUI / --bg / FleetView / daemon bg sessions
on May 14, 2026 I have been running in to the same issue over the past 24 hours
Running into this issue repeatedly over the past 30 minutes.
- Claude Code Desktop, Mac w/Apple Silicon (Claude 1.7196.0 (2dbd78) 2026-05-12T05:34:40.000Z)
- Opus 4.7 Extra High
Auto-archived sessions will not re-archive them if you unarchive. This will be out in Thursday's release.
TITLE: Claude Code sessions auto-archiving within 20-90 min, dropping mobile bridge (started ~2026-05-09)
ENVIRONMENT
SUMMARY
Active Claude Code sessions launched from the desktop FleetView app are auto-archiving within 20–90 minutes of activity, dropping the mobile-bridge connection and removing the session from the Active list. Heavy tool use accelerates the archive (one session today auto-archived in under 30 min while doing back-to-back git operations and security scans). The CLI process often keeps running for a turn or two but eventually breaks. The behavior started on or about 2026-05-09 with no local config or binary changes.
The workflow impact is severe: each archive event interrupts mobile remote-control access, the session has to be restarted from scratch, and ~2 hours/day of compounding context is lost.
REPRO
DIFFERENTIAL — IDENTICAL CONFIG, DIFFERENT BEHAVIOR
The same account has sessions in multiple project buckets. Only one is affected:
/Users/jason/.openclaw/bucket — 81 → 34 transcripts after cleanup; all archive/Users/jason/.openclaw/workspace/bucket — 54 transcripts; no archive problemHypothesis: per-account policy keyed off cwd or transcript density, with this bucket tripping the policy.
SERVER FLAGS (from ~/.claude.json cachedGrowthBookFeatures)
These flag values are what differ for this account vs. fresh installs:
The combination of
session_keepalive_interval_ms = 0(keepalive off) +teardown_archive_timeout_ms = 1500(1.5s grace) is the most likely culprit. The mobile bridge can't survive the slightest network blip with no recovery path.SAMPLE BUCKET CHURN (today)
5 sessions in 7 hours of one workday, average ~80 min before archive on lighter sessions, under 30 min on heavy-tool-use sessions.
WHEN IT STARTED
On or about 2026-05-09. No claude-code binary update has occurred since 2026-04-27. No local
~/.claude/settings.jsonor workspacesettings.local.jsonchanges in 14+ days. The behavior change correlates ONLY with GrowthBook feature flag refreshes (written to~/.claude.jsonon every launch).ASKS
~/.claude/settings.jsonknob to override the server flag values?ATTACHED IF HELPFUL
UPDATE 2026-05-12 (evening — bucket-theory invalidated)
Tested the workaround: launched a fresh Atlas 1b session from
/Users/jason/.openclaw/workspace/(the "clean" bucket — 54 transcripts vs the suspect bucket's 137). It auto-archived within ~30 minutes of opening.So the bucket-density theory is wrong. The archive policy is NOT keyed off project-dir transcript count. It hits any session on this account regardless of cwd / project bucket.
Revised understanding: the trigger is per-account, not per-bucket. The disabled keepalive (
session_keepalive_interval_ms: 0) and 1.5s teardown grace apply to every session this user opens, in every project. Switching project folders does not help.Affected accounts on this user's machine:
jason@fuse.fitandsubpej@gmail.comconfirmed. Likelyjpejsa@gmail.comandops@fuse.fittoo but not directly tested.ASKS (revised):