[BUG] Silent crash when running from home directory with config-based OAuth
Resolved 💬 2 comments Opened Jan 29, 2026 by pakharev Closed Jan 29, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude Code silently crashes immediately after the TUI appears when running from the user's home directory (~) with config-based OAuth authentication. The process exits with no error message.
What Should Happen?
Claude Code TUI is functional.
Error Messages/Logs
-
Steps to Reproduce
- Authenticate via claude (creates oauthAccount in ~/.claude.json)
- Ensure CLAUDE_CODE_OAUTH_TOKEN is not set: unset CLAUDE_CODE_OAUTH_TOKEN
- Run from home directory: cd ~ && claude
- Accept trust dialog if prompted
- TUI appears briefly, then exits silently
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.23
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Xterm
Additional Information
- OS: RHEL 8.7 (kernel 4.18.0-425.19.2.el8_7.x86_64)
- Shell: bash
I've found that setting CLAUDE_CODE_OAUTH_TOKEN env var is a workaround:
CLAUDE_CODE_OAUTH_TOKEN=<your-token> claude
Other cases that work fine:
- ✅ Any other directory with config-based OAuth (cd /tmp/test && claude)
- ✅ Home directory with env-based OAuth (CLAUDE_CODE_OAUTH_TOKEN=... claude)
What crashes:
- ❌ Home directory + config-based OAuth only
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗