anomalyco / anomalyco/opencode
tui: " File " badge label invisible with the system theme
@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):

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
- Use the
systemtheme. @-mention a file in the prompt and send.- The chip in the submitted message is a solid colored block — no visible
Filelabel.
(reproduced on 1.18.18; still present on dev)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.