Claude is either blank or non-interactive

Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Activity 8 comments · opened Feb 24, 2025 · closed Mar 25, 2025
💡 Likely answer: A maintainer (bcherny, collaborator) responded on this thread — see the highlighted reply below.
  1. Install
  2. claude
  3. See blank screen
  4. Some amount of ctrl+c + claude, random enter, and now I can see this
╭────────────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview!             │
│                                                        │
│   /help for help                                       │
│                                                        │
│   cwd: /Users/franklinharvey/Documents/code/monologue  │
╰────────────────────────────────────────────────────────╯
  ⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must contain 
non-whitespace text"}}
  ⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must contain 
non-whitespace text"}}

but I cannot type. when I ctrl+c now I see this

╭────────────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview!             │
│                                                        │
│   /help for help                                       │
│                                                        │
│   cwd: /Users/franklinharvey/Documents/code/monologue  │
╰────────────────────────────────────────────────────────╯
  ⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must contain 
non-whitespace text"}}
  ⎿  API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages: text content blocks must contain 
non-whitespace text"}}

Total cost: $0.0000
Total duration (API): 0.0s
Total duration (wall): 1m 39.3s

╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ >                                                                                                                                 │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
  Press Ctrl-C again to exit                                                                                         \⏎ for newline

but everything from Total cost: $0.0000 until the end is hidden until I quit, meaning I can't see the text box until after i quit

Video

https://github.com/user-attachments/assets/d54ffbb2-13b7-4c5d-9883-9d22085544c6

---

Update, this only happens in some repos, could be something about direnv?

direnv: loading ~/Documents/code/<repo name>/.envrc
direnv: export +AWS_PROFILE +CI_DOCKER_CONTAINER_REGISTRY_PAT +PUPPETEER_EXECUTABLE_PATH +PUPPETEER_SKIP_CHROMIUM_DOWNLOAD

View original on GitHub ↗

8 Comments

bcherny collaborator · 1 year ago

Hi! Mind sharing your NodeJS version and terminal?

1guzzy · 1 year ago

I'm experiencing this same issue. I can't see what I'm prompting until I hit enter and I can't see the results until I hit enter again.

Shell: zsh 5.9 (x86_64-apple-darwin23.0)
Node: v18.18.0
MacOS: 14.5

KelviNosse · 1 year ago

Same issue:

Shell: zsh 5.9 (arm64-apple-darwin24.0)
Node: v23.8.0

franklinharvey · 1 year ago
Hi! Mind sharing your NodeJS version and terminal?

Node: v18.17.0
Shell: default mac terminal, zsh, oh-my-zsh

KelviNosse · 1 year ago

Interesting if you run sudo claude the issue gets resolved, probably something related to permissions could be the fix 🤔

pierregoutheraud · 1 year ago

Same issue for me. The interface is hidden.

Shell: fish, version 3.7.1
NodeJS: 20.15.1
Terminal: ghostty and kitty

sudo claude does fix the issue.

https://github.com/user-attachments/assets/44170695-e25a-4dce-a5bd-f37f060d01b1

wolffiex collaborator · 1 year ago

Folks reporting this issue, did this get better with 0.2.32?

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.