Skip to content

[Bug]: gibberish rgb escape codes appear in terminal #1238

Closed

Description

@nathanscain

Before submitting

  • 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

  1. use the terminal
  2. some combination of restarts / version changes / upgrades / computer restarts (really unclear)
  3. 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

Impact

Cosmetic issue

Version or commit

0.0.13

Environment

macos 26.3, installed via homebrew

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

ctrl+c to get a new line and ignoring it

Activity

  1. added
    bug
    needs-triage
    on Mar 20, 2026
  2. added a commit that references this issue on Mar 22, 2026
    a0c1228
  3. mmmattG commented on Apr 16, 2026

    @mmmattG
    Contributor

    I was able to reliably reproduce this on my machine by:

    1. Opening a new file in vim/nvim
    2. Closing it (:q)
    3. Minimise terminal with Cmd + J
    4. Reopen terminal with Cmd + J
      -> 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.

  4. evkosenk commented on Apr 20, 2026

    @evkosenk

    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.

  5. evkosenk commented on May 15, 2026

    @evkosenk

    @maria-rcks, could you please comment on it, does closure means that it was fixed?

  6. olafura commented on Jun 24, 2026

    @olafura

    @kedMertens @mmmattG @nathanscain Could you try my branch to check if it fixes the problem

  7. 15 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions