Skip to content

fix(tui): unify attention indicators with unread accent - #45741

Merged
kitlangton merged 2 commits into
v2from
attention-color
Aug 27, 2026
Merged

kitlangton merged 2 commits into
v2from
attention-color

Conversation

@kitlangton

@kitlangton kitlangton commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Why
Question, permission, and unread indicators currently use three different colors. Give them one consistent attention color and let the glyph communicate what needs attention.

What Changes
Default both text.status.question and text.status.permission to $text.status.unread, the theme's unread accent color.

State Before After
Question ? Informational feedback Unread accent
Permission ! Warning Unread accent
Unread Accent Unchanged
Running Primary/interactive Unchanged

Changing a theme's unread color now updates question and permission indicators too, unless the theme explicitly overrides those status tokens. This applies to both light and dark modes, including standalone themes.

Demo
Left: base 0c77f6ed5b. Right: 99d57e01b3.

OpenCode dark, Catppuccin dark, Gruvbox dark, then Catppuccin light. Each pair shows real running, question, permission, and unread sessions, with the question selected.

accent-comparison.mp4

Recorded from the production TUI using an isolated OpenCode Drive scenario with simulated LLM responses. Live frames are sampled at 10 fps and encoded with Drive's recording renderer. The video reuses the base-revision footage, crops to the tab rail, and joins equal-length theme checkpoints. Setup and theme-picker transitions are omitted.

Scope
Only the default question and permission colors change. Their glyphs and semantic tokens remain distinct, explicit theme overrides are preserved, and error feedback stays unchanged. Includes a theme changeset and regression coverage for theme resolution and selected/unselected tab indicators.

Verification

(cd packages/theme && bun run test)
(cd packages/theme && bun typecheck)
(cd packages/tui && bun run test test/component/session-tabs-status.test.tsx test/component/session-tabs-mouse.test.tsx)
(cd packages/tui && bun typecheck)
git diff --check 0c77f6ed5b...HEAD

All passed: 6 theme tests and 8 tab tests. The push hook also passed all 33 workspace typecheck tasks. All four updated Drive runs completed successfully; inspected narrow 60x26 and wide 120x32 captures as well as the recorded 96x26 viewport.

@kitlangton kitlangton changed the title fix(tui): use primary theme color for questions fix(tui): unify attention indicators with unread accent Aug 27, 2026
@kitlangton
kitlangton marked this pull request as ready for review August 27, 2026 21:13
@kitlangton

Copy link
Copy Markdown
Contributor Author

Merging with a CI exception: Linux unit tests timed out in LocationServiceMap > does not cancel activation when a flush waiter is interrupted, outside this theme-only change. That test passed five consecutive local reruns; the 6 theme tests, 8 tab tests, typecheck, and Linux e2e passed. Windows unit and e2e jobs are still running.

@kitlangton
kitlangton merged commit f607ca4 into v2 Aug 27, 2026
9 of 10 checks passed
@kitlangton
kitlangton deleted the attention-color branch August 27, 2026 21:15
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
)

Use the unread accent color for question and permission status indicators by default, preserving semantic tokens and explicit theme overrides.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant