Session missing from sidebar after Mac sleep/wake; only recovered via quit+relaunch "import" prompt
Description
When the MacBook lid is closed (sleep) while a Claude Code desktop app chat session is active, the session disappears from the sidebar on wake — even though the working directory shown at the top of the window is unchanged and correct.
The session is not actually lost: fully quitting and relaunching the app triggers a prompt to "import" the chat, meaning the transcript is saved to disk but the app's session index/sidebar isn't updated correctly across sleep/wake.
Steps to reproduce
- Start or continue a chat in the Claude Code desktop app, working directory e.g.
/Users/raymond. - Close the MacBook lid (sleep).
- Reopen the lid, bring the app back.
- Observe: the chat is missing from the sidebar, despite the top-of-window directory still showing the correct path.
- Quit the app entirely (not just close window) and relaunch.
- App prompts to "import" the missing chat — importing restores it.
Expected behavior
The session should remain visible in the sidebar across sleep/wake without requiring a manual quit + relaunch + import.
Actual behavior
Session vanishes from sidebar after sleep/wake; only recoverable via full app restart and manual import.
Environment
- Platform: macOS (Darwin 25.6.0)
- App: Claude Code desktop app
- Working directory scoping confirmed unaffected (directory shown was correct before and after)
Impact
No data loss, but disruptive — requires quitting and relaunching the app after every lid-close to recover an in-progress chat.