[BUG] Just after giving first prompt for user input, claude abruptly terminates.

Resolved 💬 3 comments Opened Feb 19, 2026 by jon-greene Closed Feb 19, 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?

I call "claude" on the linux command line in a terminal window. The startup screen appears, showing v2.1.47. It gives me the prompt ">" but before I can type anything the program exits with status 0. This happens repeatedly.

What Should Happen?

Claude should remain running and let me type something in.

Error Messages/Logs

[jgreene@216-219-95-78 ~/claude2]$ claude

╭─── Claude Code v2.1.47 ─────────────────────────────────────────────────────────────────────────────╮
│                            │ Tips for getting started                                               │
│   Welcome back Jonathan!   │ Ask Claude to create a new app or clone a repository                   │
│                            │ ────────────────────────────────────────────────────                   │
│                            │ Recent activity                                                        │
│                            │ No recent activity                                                     │
│              ·             │                                                                        │
│              |             │                                                                        │
│             ▟█▙            │                                                                        │
│           ▐▛███▜▌          │                                                                        │
│          ▝▜█████▛▘         │                                                                        │
│            ▘▘ ▝▝           │                                                                        │
│    Opus 4.6 · Claude Max   │                                                                        │
│          ~/claude2         │                                                                        │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯

───────────────────────────────────────────────────────────────────────────────────────────────────────
❯ Try "refactor <filepath>"
───────────────────────────────────────────────────────────────────────────────────────────────────────
  ? for shortcuts
[jgreene@216-219-95-78 ~/claude2]$ echo $status
0
[jgreene@216-219-95-78 ~/claude2]$

Steps to Reproduce

  1. Install claude on linux with this command:

curl -fsSL https://claude.ai/install.sh | bash

  1. Run the command:

claude

Nine times out of 10, it will abruptly terminate rather than accept user input.

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

I'm not sure what the previous version was, but my first attempt to use claude worked fine for three days. Only when I started another session did the problem occur.

Claude Code Version

2.1.47 (Claude Code)

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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