CommandCodeAI / CommandCodeAI/desktop

[Bug]: Stray ANSI Escape Characters in TUI Terminal in Desktop and Reload

Open
#26 1 comment 0 reactions 1 assignee View on GitHub

@aliarain is already working on this.

Since Sep 7, 2026.

bug
Dominant language
Shell
Stars
80
Forks
2
PR merge metrics
No merged PRs in 30d

Description

GUI version

0.1.9

Operating system

macOS (Apple silicon)

Reproduction steps
  1. Launch Desktop App
  2. In the terminal window that opens, navigate to a project directory for an existing project/directory where used cmd CLI before
  3. Launch CLI via cmd
  4. Use command-R (or via the View menu reload item) to reload desktop app
  5. See
Image
❯ ]11;rgb:0000/0000/0000\]11;rgb:0000/0000/0000\ 

Looks like it inlined:


⠶ That's an OSC (Operating System Command) escape sequence — specifically OSC 11, which sets the terminal's background color.

  - ] — starts an OSC sequence
  - 11 — command for the default background color
  - rgb:0000/0000/0000 — color in X11 rgb: notation (16-bit per channel), i.e. black
  Full form is typically ESC]11;rgb:0000/0000/0000ESC\ (or with BEL \a as terminator). Terminal emulators like iTerm2, kitty,
  and WezTerm send it to change their own background color.
Expected behavior
  • leave input clean
Actual behavior

Left OSC (Operating System Command) escape sequence — specifically OSC 11,

Screenshots, recordings, or sanitized logs
Image
Safety check
  • I removed credentials and private project information from this report.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.