You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: gibberish rgb escape codes appear in terminal #1238
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
use the terminal
some combination of restarts / version changes / upgrades / computer restarts (really unclear)
open terminal to see a bunch of escape codes typed in the terminal
Expected behavior
terminal restores to previous state without escape codes
Actual behavior
common to see escape codes in a restored terminal (the majority of my threads)
t3code-278c6346 on git ci/add-generated-attributes [$] via node 25.8.1 on aws company
> 10;rgb:f5f5/f5f5/f5f511;rgb:1616/1616/16161;2c10;rgb:f5f5/f5f5/f5f511;rgb:1616/1616/16161;2c10;rgb:f5f5/f5f5/f5f511;rgb:1616/1616/16161;2c
t3code-278c6346 on git ci/add-generated-attributes [$] via node 25.8.1 on aws company
> ^[]10;rgb:f5f5/f5f5/f5f5^[\^[]11;rgb:1616/1616/1616^[\^[[?1;2c^[]10;rgb:f5f5/f5f5/f5f5^[\^[]11;rgb:1616/1616/16
t3code-278c6346 on git ci/add-generated-attributes [$] via node 25.8.1 on aws company
> 10;rgb:f5f5/f5f5/f5f511;rgb:1616/1616/16161;2c10;rgb:f5f5/f5f5/f5f511;rgb:1616/1616/16161;2c
I'm experiencing same, when I switch projects or restore a terminal, the prompt gets flooded with repeated escape-reply fragments like: 2026;2$y2027;0$y2031;0$y2048;0$y1$r0m.
It seems that it happens cause replayed history contains control-query bytes, so restore keeps generating fresh replies.
Activity
fix(terminal): strip OSC/DA query responses from persisted history
mmmattG commentedon Apr 16, 2026
I was able to reliably reproduce this on my machine by:
-> Random terminal characters appended to the terminal output each time its reopened.
Typing exit in terminal to close it (instead of Cmd + J) and reopening seems to clear the issue.
T3 Code Version: 0.0.17-nightly.20260415.45
Video reproduction:
https://github.com/user-attachments/assets/154e23a0-25aa-41e3-a1c1-286dae5403a4
No idea if this is helpful as I'm not that knowledgeable in this area, but hope it helps.
evkosenk commentedon Apr 20, 2026
I'm experiencing same, when I switch projects or restore a terminal, the prompt gets flooded with repeated escape-reply fragments like:
2026;2$y2027;0$y2031;0$y2048;0$y1$r0m.It seems that it happens cause replayed history contains control-query bytes, so restore keeps generating fresh replies.
evkosenk commentedon May 15, 2026
@maria-rcks, could you please comment on it, does closure means that it was fixed?
olafura commentedon Jun 24, 2026
@kedMertens @mmmattG @nathanscain Could you try my branch to check if it fixes the problem
15 remaining items
fix(server): stop terminal escape sequences leaking as garbled text