claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Not able to type the prompt into the input

Open weiqingtangx opened this issue 3 months ago β€’ 5 comments

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?

The prompt I typed is not filled into the CLI input, instead of it goes to the red box position (1st image). It will wrap the line after "Enter" pressed and not execute the prompt( 2nd image).

Image Image

What Should Happen?

Should allow me type the prompt and generate the code.

Error Messages/Logs


Steps to Reproduce

  1. Run 'Claude" at terminal

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

1.0.112 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

weiqingtangx avatar Sep 12 '25 01:09 weiqingtangx


Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5491
  2. https://github.com/anthropics/claude-code/issues/5910
  3. https://github.com/anthropics/claude-code/issues/6943

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and πŸ‘ the existing issue instead
  • To prevent auto-closure, add a comment or πŸ‘Ž this comment

πŸ€– Generated with Claude Code

github-actions[bot] avatar Sep 12 '25 01:09 github-actions[bot]

I have the same issue on Ubuntu 25.10 using the Ptyxis terminal. Interestingly, it was working fine before, but even after rolling back to previous versions, the problem persists. I'm getting really frustrated because I can't use Claude Code. I also tried installing GNOME Terminal, but it had the same issue.

Image

robsonalvesdevbr avatar Nov 05 '25 18:11 robsonalvesdevbr

This happens to me with Alacritty on Arch too.

elldritch avatar Dec 08 '25 23:12 elldritch

Here's a recording with a keyboard overlay to show just how badly unusable this is, in case this helps.

https://github.com/user-attachments/assets/ba5794a9-8ec0-4244-8b53-b7a22d0ef026

In this recording, I'm using fish on alacritty, although I have replicated this on zsh, terminator, and ghostty as well.

elldritch avatar Dec 09 '25 21:12 elldritch

@catherinewu As discussed, I spent some time this morning bisecting Claude Code versions, and it looks like 2.0.53 is the earliest version where this bug occurs (i.e. 2.0.52 is the latest version of Claude Code that actually works on my computer).

For anyone else who stumbles on this issue and needs a workaround, here's how you can downgrade:

  1. Claude Code installs every version of itself locally in your computer, and then uses claude as a symlink to point to the latest version. You can find where your versions directory is using ls $(which claude).
  2. You'll need to remove every version of claude that is more recent than 2.0.52 from your versions directory. This is because when you run claude, it updates the symlink to point to the latest installed claude version so that you get the latest Claude Code the next time you start a session.
  3. You can then install 2.0.52 by passing an explicit target version to the install script (curl -fsSL https://claude.ai/install.sh | bash -s -- 2.0.52) and redirect the claude symlink.

elldritch avatar Dec 12 '25 19:12 elldritch

Okay, actually something even stranger is happening here. It seems like this bug only happens sometimes. I just tried running 2.0.65 a bunch of times in a row, and I encountered this bug the first 4 times and then the prompt succeeded in capturing my cursor the 5th time. Maybe it's some sort of race condition on startup?

elldritch avatar Dec 16 '25 21:12 elldritch

@catherinewu I've got a reliable reproduction for you!

I've discovered some truly baffling behavior: claude accepts input only if I have typed input between the time when I first run the command and the time when the prompt becomes available. Otherwise, Claude Code is completely unusable with no indication of what's broken.

I've attached a recording with a keyboard overlay in case you want to see for yourself:

https://github.com/user-attachments/assets/b576625d-88ad-477d-bd9e-6e541e1e0dab

I'm on Arch, running Claude 2.0.70. Here's my claude doctor output:

➜ claude doctor

 Diagnostics
 β”” Currently running: native (2.0.70)
 β”” Path: /home/eliza/.local/bin/claude
 β”” Invoked: /home/eliza/.local/share/claude/versions/2.0.70
 β”” Config install method: native
 β”” Auto-updates: enabled
 β”” Search: OK (bundled)

 Press Enter to continue…

elldritch avatar Dec 16 '25 22:12 elldritch