Skip to content

Conversation

@mattConnHarbour
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Jan 16, 2026

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2ab84ecc34

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +312 to +316
// Read custom highlight colors from editor options, with defaults
const highlightColors = editor.options.commentsHighlightColors || {};
const externalColor = highlightColors.external || '#B1124B';
const internalColor = highlightColors.internal || '#078383';
const resolvedColor = highlightColors.resolved || '#808080';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate custom highlight colors before use

Custom colors are now accepted verbatim here, but getHighlightColor later appends an alpha suffix ('22'/'44') via string concatenation. That only produces valid CSS when the base color is a 6‑digit hex value; if a caller supplies a common CSS color like rgb(255,0,0) or #RRGGBBAA, the concatenation yields an invalid color string (e.g. rgb(255,0,0)22), so highlights won’t render. This only affects configurations that use non‑6‑digit hex strings; consider validating/normalizing to hex or converting to rgba(...) before appending alpha.

Useful? React with 👍 / 👎.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattConnHarbour can you fix this?

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.

3 participants