[BUG] Ghostty shows random underlines
Environment
- Claude CLI version: 0.2.45 (Claude Code)
- Operating System: macOS 15.3.2
- Terminal: Ghostty
Bug Description
Sometimes (within the last day only) Claude Code gets into a state where there are a ton of lines in the interface:
Steps to Reproduce
- Use Claude Code a ton
- Lines show up
- Profit?
Expected Behavior
Not lines
Actual Behavior
Lines
Additional Context
It seems pretty random
I was not able to repro this with GhostTTY. Does this happen consistently for you? Do you have repro instructions?
I would expect it to be difficult to reproduce. I use Claude Code constantly in multiple windows and I had it happen a couple times but it was seemingly random. Mostly wanted to document it.
One thing I noticed last night after this was the interface got a bit janky in a different way after an error about Claude using malformed JSON in an API (presumably tool) call followed by me doing something with the command bar that evoked the autocomplete dropdown.
It wasn't the same issue, more like broken/missing interface lines and large gaps in the rollback but in this case the interface was back to normal on its own after another message in the chat.
Made me think there's some error handling for malformed JSON in place for whatever caused that but potentially some edge case circumvents it in the "everything is underlined and there are lines through the command bar" because that issue doesn't go away without exiting.
I also get this issue pretty regularly. Sometimes I can make it go away by resizing my window. Sometimes it goes away on its own. I cannot identify any trigger for it.
https://github.com/user-attachments/assets/cd51e45d-c937-490e-9c38-64067166616d
I don't have much to add, but I saw it happens for one project twice (on the same project) using warp terminal (osx).
happening here too. this is inside the terminal on vs code.
happens for me too regularly. what worked for me is hitting 'ctrl + r' to expand everything and then hitting 'ctrl + r' again to revert it to regular view. this usually fixes it for me.
i have had the same thing happen in apple's terminal, warp.dev, and vscode.
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.