[BUG] Interactive REPL exits immediately on WSL (non-interactive mode works fine)
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 v2.1.37, Ubuntu 24.04 on WSL2 (Windows 10/11)
claude -p "hello" works perfectly
Interactive claude opens, shows welcome screen, then exits after ~4 seconds with exit code 0
No errors in debug log — process just silently terminates
Tried: unbuffer claude, TERM=xterm claude, clean .bashrc, different directories, fresh install on Ubuntu 24.04 (also reproduced on 18.04)
Auth is fine (Opus 4.6 · Claude Max)
Proxy: HTTPS_PROXY set (connection verified via curl)
What Should Happen?
no auto-close after 4 seconds.
Error Messages/Logs
Steps to Reproduce
it can work after i git clone by SSH dome documents and try to use claude in this folder with VS code.
so
- install claude with WSL
- setup proxy
- with ssh clone some folder form gitlab
- go to that folder
- code . (opens vs code)
- claude
FR: exits after 4 seconds without logs
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.37 (Claude Code)
Platform
Other
Operating System
Windows
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗