Skip to content

fix(tui): reject malformed COLORFGBG indexes - #2305

Open
xianjianlf2 wants to merge 1 commit into
MoonshotAI:mainfrom
xianjianlf2:markxian/fix-colorfgbg-strict
Open

fix(tui): reject malformed COLORFGBG indexes#2305
xianjianlf2 wants to merge 1 commit into
MoonshotAI:mainfrom
xianjianlf2:markxian/fix-colorfgbg-strict

Conversation

@xianjianlf2

Copy link
Copy Markdown

Related Issue

No linked issue.

Problem

Terminal theme detection could treat malformed COLORFGBG background indexes like 9abc as valid because parsing stopped at the numeric prefix.

What changed

Require the background color index to be fully numeric before resolving the fallback theme, and add unit coverage for malformed values.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 78e668d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant