[PR #12832] fix(tui): use sender color for queued messages #14392

Closed
opened 2026-02-16 18:19:11 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12832

State: closed
Merged: Yes


What does this PR do?

Closes #12831.

Queued user messages were using the global theme.accent color, which made them look disconnected from the mode/agent that sent them.
This PR updates queued message styling in the TUI to use the sender color (local.agent.color(props.message.agent)) for:

  • the left message border
  • the QUEUED badge background
    It also uses selectedForeground(theme, color()) for the QUEUED badge text so contrast stays readable across themes.
    This works because it reuses the same sender-color path already used elsewhere in the TUI and relies on the shared foreground contrast helper instead of hardcoded colors.

How did you verify your code works?

  • Ran bun run typecheck in packages/opencode (passes).
  • Manually verified queued messages now keep mode color instead of switching to accent.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12832 **State:** closed **Merged:** Yes --- ### What does this PR do? Closes #12831. Queued user messages were using the global `theme.accent` color, which made them look disconnected from the mode/agent that sent them. This PR updates queued message styling in the TUI to use the sender color (`local.agent.color(props.message.agent)`) for: - the left message border - the `QUEUED` badge background It also uses `selectedForeground(theme, color())` for the `QUEUED` badge text so contrast stays readable across themes. This works because it reuses the same sender-color path already used elsewhere in the TUI and relies on the shared foreground contrast helper instead of hardcoded colors. ### How did you verify your code works? - Ran `bun run typecheck` in `packages/opencode` (passes). - Manually verified queued messages now keep mode color instead of switching to accent.
yindo added the pull-request label 2026-02-16 18:19:11 -05:00
yindo closed this issue 2026-02-16 18:19:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14392