[BUG] Session exits immediately after welcome screen on Rocky Linux (regression in v2.0.47+)

Resolved 💬 3 comments Opened Nov 21, 2025 by samiMHMD Closed Nov 25, 2025

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?

After upgrading from v2.0.41 to v2.0.47+, Claude Code displays the welcome screen briefly then immediately exits. The trust folder prompt appears on every launch. Running any command produces: "Error: Input must be provided either through stdin or as a prompt argument when using --print". Running claude doctor shows: "ERROR Raw mode is not supported on the current process.stdin, which Ink uses"

What Should Happen?

Claude Code should start normally and remain in an interactive session after displaying the welcome screen, as it did in version 2.0.41 and earlier.

Error Messages/Logs

Error when running claude with any flags:
Error: Input must be provided either through stdin or as a prompt argument when using --print

Error when running claude doctor:
ERROR Raw mode is not supported on the current process.stdin, which Ink uses

Debug log excerpt (~/.claude/debug/latest):
2025-11-21T09:48:25.140Z [DEBUG] Failed to check metrics opt-out status: timeout of 5000ms exceeded
2025-11-21T09:48:25.140Z [ERROR] AxiosError: Error
    at <anonymous> (/$bunfs/root/claude:64:10668)
    at emit (node:events:92:22)
    at <anonymous> (/$bunfs/root/claude:63:3314)
    at request (/$bunfs/root/claude:66:2147)
    at processTicksAndRejections (native:7:39)
2025-11-21T09:48:25.463Z [DEBUG] Getting matching hook commands for SessionStart with query: startup
2025-11-21T09:48:25.464Z [DEBUG] Getting matching hook commands for SessionEnd with query: other
2025-11-21T09:48:25.465Z [DEBUG] Cleaned up session snapshot
2025-11-21T09:48:25.465Z [DEBUG] LSP server manager shut down successfully

strace output shows exit with code 1:
exit_group(1)                           = ?
+++ exited with 1 +++

Steps to Reproduce

  1. Install Claude Code v2.0.47 or later on Rocky Linux VM using native installer
  2. Run claude in terminal
  3. Observe welcome screen appears briefly
  4. Session exits immediately with error message
  5. Run claude doctor - produces "Raw mode is not supported" error
  6. Downgrade to v2.0.41: curl -fsSL https://claude.ai/install.sh | bash -s 2.0.41
  7. Run claude - works perfectly

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.0.41 (maybe other after)

Claude Code Version

2.0.49 (broken), 2.0.47 (broken), 2.0.41 (working)

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

  • Used Claude Code successfully on this exact VM for several months before the upgrade
  • Debug logs show successful initialization but exit with code 1 after SessionStart
  • No hooks, aliases, or custom configuration causing the issue
  • Issue persists with clean environment (env -i) and after removing all configuration
  • Regression likely introduced between v2.0.41 and v2.0.47

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗