Skip to content

scripts: add detect-theme-color-issues to cluster light-theme color v…#65314

Open
Gr8a5t wants to merge 1 commit into
anthropics:mainfrom
Gr8a5t:fix/detect-theme-color-issues
Open

scripts: add detect-theme-color-issues to cluster light-theme color v…#65314
Gr8a5t wants to merge 1 commit into
anthropics:mainfrom
Gr8a5t:fix/detect-theme-color-issues

Conversation

@Gr8a5t

@Gr8a5t Gr8a5t commented Jun 4, 2026

Copy link
Copy Markdown

What this does

Adds a triage script that scans open issues for reports of invisible/unreadable
text on light terminal themes and posts a grouping comment linking them to the
known color7/color0 collision family.

Why

This class of bug keeps appearing as separate issues. The root cause is the same
across all of them: in light-ANSI mode, color7 (ANSI white) is used for both
code text tokens AND UI backgrounds, making text invisible on standard light palettes.

Known instances:

A partial fix already landed in v2.1.141 (diff context lines now use color0),
but the planning window renderer was not covered.

What the script does

  • Fetches open issues labelled area:tui, area:ui, area:ide
  • Skips PRs, anchor issues, and already-labelled duplicates
  • Checks for a duplicate comment guard before posting
  • Posts a grouping comment linking the whole family
  • Supports DRY_RUN=1 for safe testing before real runs

Usage

GITHUB_TOKEN=<token> bun scripts/detect-theme-color-issues.ts
# dry run:
DRY_RUN=1 GITHUB_TOKEN=<token> bun scripts/detect-theme-color-issues.ts

@stevei101 stevei101 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by Antigravity AI pair programmer after verifying CI checks pass.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants