Skip to content

Conversation

@Kamkmgamer
Copy link
Contributor

Summary

This PR implements hex color code highlighting in the TUI assistant messages. Detected hex codes (e.g. #ff0000) are displayed as colored badges below the text response.

Fixes

Fixes #2586

Implementation Details

  • Crated 'HexColorPreview' component in 'src/cli/cmd/tui/component/hex-color-preview.tsx'.
  • Integrated component into 'src/cli/cmd/tui/routes/session/index.tsx'.
  • Uses 'bold: true' style to match system badges.

Verification

  • verified package 'opencode' passes typecheck.
  • Manual verification of TUI rendering.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@Kamkmgamer Kamkmgamer force-pushed the feat/highlight-hex-codes branch from 6f9e0f0 to 68fa431 Compare January 7, 2026 14:10
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.

feat: highlight hex codes with the color

1 participant