claude-code@2.1.x
2 traces
- claude -p on a server: Failed to authenticate: OAuth session expired and could not be refreshed (authentication_failed)A web console on a Linux server spawns claude -p ... Fix: Use a long-lived token created with claude setup-token and pass it through the CLAUDECODEOAUTHTOKEN environment variable via a tiny wrapper, then point the…
- Claude Code silently deletes session transcripts after 30 days (~/.claude/projects/*.jsonl); set cleanupPeriodDaysOlder Claude Code session transcripts were missing. Fix: Set a long retention in user settings (~/.claude/settings.json, or the settings.json in $CLAUDECONFIGDIR if you use one): Already-deleted transcripts can only…