Bug Report: Last line of input/output in terminal is not rendering

Status Fixed / completed
Maintainer reply None cached
Activity 8 comments · opened Mar 24, 2025 · closed Apr 5, 2025

Bug Description

I can't see the last line. This problem exists across VSCode, iTerm2, and Terminal.app on my mac. Not sure if it's a system issue or claude code one.

So, I'm not able to see the input as I type it, and also, the output doesn't always show up.

<img width="1466" alt="Image" src="https://github.com/user-attachments/assets/2d2d7fe1-1c85-4861-936e-3e4b49f0bfd1" />

Environment Info

  • Platform: macos
  • Terminal: vscode
  • Version: 0.2.53
  • Feedback ID: 664fe1a8-5683-40d5-9df3-979b4a972b03

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.0: all messages must have non-empty content except for the optional final assistant message\"}}\n    at N3.generate (file:///Users/shivam/.reflex/.nvm/versions/node/v21.7.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:995:10064)\n    at U3.makeStatusError (file:///Users/shivam/.reflex/.nvm/versions/node/v21.7.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:999:7207)\n    at U3.makeRequest (file:///Users/shivam/.reflex/.nvm/versions/node/v21.7.3/lib/node_modules/@anthropic-ai/claude-code/cli.js:999:8149)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-03-24T17:11:51.475Z"}]

View original on GitHub ↗

8 Comments

reverie · 1 year ago

@shivam-singhal Do you see this issue with any other terminal programs, or just Claude Code? Does it happen 100% of the time?

shivam-singhal · 1 year ago

@reverie just claude code, and yup 100% of the time (across vscode, iterm, terminal)

reverie · 1 year ago

@shivam-singhal Thanks. Can you clarify when and where the error from the issue description appears? ([{"error":"Error: 400...) It's not visible in the screenshot.

shivam-singhal · 1 year ago

@reverie hmm it's stopped appearing every time - the only behavior that's consistent is that I can't see the prompt (i.e. when can't see what i'm typing)

hopefully this helps?

https://github.com/user-attachments/assets/f6f01508-96bf-4032-9b70-830145fb7f3c

andyreagan · 1 year ago

If you CI set it your environment, you won't be able to see the last line. This is reproducible for me.

andyreagan · 1 year ago

I opened an issue with steps to reproduce on https://github.com/anthropics/claude-code/issues/677

shivam-singhal · 1 year ago

@andyreagan thanks for pointing this out!

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.