Startup Recovery
Release notes caching and terminal backup restoration on launch.
Release notes cache
Section titled “Release notes cache”Claude Code fetches the changelog from GitHub and caches it locally to display on next launch.
- On startup: Check for cached changelog at
~/.claude/cache/changelog.md - If missing or old: Fetch from GitHub at startup (background, non-blocking)
- Display: Show “What’s new” on next launch
- Cache: Store to
~/.claude/cache/changelog.mdfor future launches
Configuration
Section titled “Configuration”Cached changelog location: ~/.claude/cache/changelog.md
- Auto-fetched: On startup if missing
- TTL: Not version-locked; refreshed periodically via background fetch
- Disabled: If network unreachable or GitHub endpoint unavailable, displays stale cache or skips
Content
Section titled “Content”Changelog typically includes:
- Latest Claude Code version features
- Bug fixes
- Breaking changes
- Upgrade notes
Displayed in terminal after session start if new content available.
Terminal backup recovery
Section titled “Terminal backup recovery”Claude Code can auto-detect and restore terminal settings if a previous session’s terminal setup was interrupted.
Supported terminals
Section titled “Supported terminals”- macOS: iTerm2, Terminal.app
- Linux: tmux (via
tmuxSocket.ts)
Backup location
Section titled “Backup location”~/.claude/backups/
Contents:
- Terminal state files (window size, colors, font settings)
- Session configuration
Recovery process
Section titled “Recovery process”On startup, Claude Code:
- Detects previous terminal setup in
~/.claude/backups/ - Checks for incomplete shutdown (e.g., process killed, terminal crash)
- Restores settings if recovery is safe:
- Window size
- Font/color scheme
- Active pane/window layout
Disabling recovery
Section titled “Disabling recovery”Recovery runs automatically. To disable:
- Delete backup files:
rm -rf ~/.claude/backups/* - Or set env var (if implemented):
CLAUDE_CODE_SKIP_TERMINAL_RECOVERY=1
Backup retention
Section titled “Backup retention”Backups are created on each session start and pruned periodically:
- Keep: Most recent 5–10 backups
- Delete: Backups >30 days old
Automatic cleanup runs at startup to avoid accumulating old backups.