emdash icon indicating copy to clipboard operation
emdash copied to clipboard

[bug]: text rendering starts to corrupt

Open kchung opened this issue 5 months ago • 7 comments

Bug Description

The terminal sometimes starts rendering text incorrectly. Characters appear misplaced, words become compressed or broken, and the terminal output becomes hard to read.

Claude Code chat
Image

The only work around I know of right now is to refresh Electron (cmd + r) to force the terminals to rerender

Steps to Reproduce

There isn't an obvious way to reproduce this yet

  1. Open Emdash.
  2. Open a task or workspace with a terminal/agent session.
  3. Let the terminal produce normal output for a while.
  4. Observe that the terminal text may begin rendering incorrectly, with garbled spacing or overlapping characters.

Actual vs Expected Behavior

See the attached screenshot, the text starts rendering over itself. The expected behavior is that it doesn't happen

emdash Version

1.1.27

Operating System

macOS 15.6.1

Additional Context

No response

kchung avatar Jun 06 '26 00:06 kchung

Hi @kchung, thanks for raising this.

We recently pushed a fix for a related Claude Code rendering issue when tmux is enabled.

Do you have tmux enabled when you experience this bug? Also, does this only happen with Claude Code, or have you seen it with other coding agents too?

arnestrickmann avatar Jun 07 '26 23:06 arnestrickmann

Hey @arnestrickmann, I do not have tmux enabled for this. It's pretty easy to recreate with Antigravity, CC is much harder because it'll eventually just start happening

For both of these sessions, I am typing while the prompt is generating:

agy

https://github.com/user-attachments/assets/41a74008-a4db-4f73-97ec-5f638c336b4e

agy in terminal

https://github.com/user-attachments/assets/356ae19a-6203-46e3-832f-19c19b9b9914

kchung avatar Jun 08 '26 03:06 kchung

@arnestrickmann I threw one of the agents at it and it came up with this fix: https://github.com/generalaction/emdash/pull/2415. Seems to work well for the Antigravity CLI issue, haven't noticed CC acting up yet on this build

kchung avatar Jun 08 '26 04:06 kchung

Thank you for the context and for attaching the recordings. We’ll have a look at this and try to reproduce, esp. with Antigravity. @kchung

Off topic, but I’m curious: are you mainly switching between Antigravity CLI and Claude Code these days, or are there other agents you’re using frequently as well?

arnestrickmann avatar Jun 08 '26 04:06 arnestrickmann

Thanks! @kchung

Will check the PR out and keep you up to date here.

Appreciate it!

arnestrickmann avatar Jun 08 '26 04:06 arnestrickmann

Thanks @arnestrickmann! Hopefully you can reproduce this as well, this happens on my work laptop and my personal one.

For personal use, I switch between three harnesses: Codex, Claude Code, and Antigravity CLI. I actually haven't really noticed this happening with Codex but see it frequently happen with CC and agy

kchung avatar Jun 08 '26 05:06 kchung

Super interesting, thanks for the extra detail. I’m mostly on Codex CLI + Claude Code at the moment (sometimes Pi.dev) and haven’t given Antigravity a proper try yet, so that’s useful context 🙌

arnestrickmann avatar Jun 08 '26 17:06 arnestrickmann