Claude is either blank or non-interactive

Resolved 💬 8 comments Opened Feb 24, 2025 by franklinharvey Closed Mar 25, 2025
  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 ↗

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