claude-code - 💡(How to fix) Fix App restart after update loses session — no in-app way to resume [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51842Fetched 2026-04-23 07:43:29
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3cross-referenced ×1

Fix Action

Fix / Workaround

Current workaround (shouldn't be required): Close the app, open a terminal, cd to the right worktree, and run claude --resume to get a session picker. That works — which proves the session data is preserved — but it's a CLI escape hatch, not a product experience.

RAW_BUFFERClick to expand / collapse

Filing this as a feature request, but honestly it feels like a bug — it's a very annoying one.

What happens: I'm working on code inside the Claude Code desktop app. An update becomes available and the app shows a Restart button. I click Restart. After the app comes back up, I'm dropped into a fresh session with no visible way to resume where I left off — no session picker, no "recent sessions" list, no draft recovery for whatever I was typing.

Every single time this happens, I lose 15+ minutes and burn tokens re-orienting a new Claude to the project, the worktree, and what I was about to do. Any prompt I was composing is gone if my clipboard didn't have it.

Current workaround (shouldn't be required): Close the app, open a terminal, cd to the right worktree, and run claude --resume to get a session picker. That works — which proves the session data is preserved — but it's a CLI escape hatch, not a product experience.

What I'd expect from a persistent-agent app:

  1. On launch after an update, either auto-resume the last session or show a "Resume previous session?" prompt.
  2. A visible Recent Sessions / History entry in the app UI, so resume is never more than a click away.
  3. Draft recovery: whatever was in the input box before restart should still be there. Losing an in-progress prompt to an update is the worst part.

The session files already live in ~/.claude/projects/ and survive the update. The data's there. The app just doesn't surface it post-restart.

Environment: macOS (Darwin 24.6.0), Claude Code desktop app, Opus 4.7.

extent analysis

TL;DR

The issue can be mitigated by using the claude --resume command in the terminal after an app update to resume the previous session.

Guidance

  • After an update, try using the claude --resume command in the terminal to resume the previous session, as this has been confirmed to work.
  • Verify that the session data is preserved by checking the ~/.claude/projects/ directory for existing session files.
  • To reduce the impact of lost work, consider copying the prompt to the clipboard before restarting the app.
  • The app could potentially be modified to auto-resume the last session or show a "Resume previous session?" prompt after an update, but this would require changes to the app's functionality.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The provided workaround using the claude --resume command is a CLI-based solution and may not be the desired product experience. The issue highlights the need for a more user-friendly way to resume previous sessions after an app update.

Recommendation

Apply workaround: using the claude --resume command in the terminal after an app update, as it has been confirmed to work and allows users to resume their previous session.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING