[BUG] Claude exits immediately to PowerShell prompt without any error message
Resolved 💬 1 comment Opened Jun 4, 2026 by Aoidayo Closed Jul 8, 2026
What's Wrong?
When executing the claude command in PowerShell 7, the process exits almost instantly and returns to the PowerShell prompt. There is no error message displayed, and no opportunity to input any commands or interact with Claude.
What Should Happen?
Expected behavior:
Claude should start and present an interactive prompt waiting for user input.
Actual behavior:
The process exits immediately (within < 1 second) and returns to the PowerShell prompt. No error messages are shown.
<img width="1234" height="716" alt="Image" src="https://github.com/user-attachments/assets/051413e6-dd02-4b76-b935-c894d3038ba3" />
Steps to Reproduce
- Open PowerShell 7
- Type claude
- Press Enter
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.161 and older
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell7
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗