anomalyco / anomalyco/opencode

tui: " File " badge label invisible with the system theme

Open
#43,182 1 comment 0 reactions 1 assignee View on GitHub

@simonklee is already working on this.

Since Aug 18, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

With the system theme, the File label on file-attachment chips in user messages is invisible — it blends into the badge background, leaving a solid colored block (note the QUEUED chip below it renders fine):

file badge label invisible with system theme

Root cause

packages/tui/src/routes/session/index.tsx paints the label with fg: theme.background over bg: theme.secondary. Built-in themes define an opaque background, but the generated system theme (generateSystem() in packages/tui/src/theme/index.ts) deliberately makes it fully transparent to respect terminal transparency — so the label disappears into the badge. The QUEUED badge just below already handles this via selectedForeground(theme, color); the file badge doesn't.

Reproduction
  1. Use the system theme.
  2. @-mention a file in the prompt and send.
  3. The chip in the submitted message is a solid colored block — no visible File label.

(reproduced on 1.18.18; still present on dev)

Contributor guide

Open the contributing guide

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.