[Bug] 高对比度主题下 Kimi Code Webview 中带框文本显示为白底白字
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- css, typescript
- Domain
- accessibility, frontend
Research direction
The payload names no files, so start by finding the chat webview's stylesheet in the extension's webview UI code and the rules that style fenced/inline code text inside a bordered block. VS Code applies vscode-high-contrast and vscode-high-contrast-light classes to the webview body and exposes theme colors via CSS variables; check whether the code text and background both resolve to the same variable there. Done means the bordered text is readable in both high-contrast themes while unchanged in Dark+/Light+, verified by switching themes in the running extension.
Written by the indexing model from the issue text.
Description
你运行的 Kimi Code 版本是?
2.7.2
你使用的是哪个开放平台/订阅?
kimi code
你使用的是哪个模型?
kimi-k3
你的电脑平台是?
Microsoft Windows NT 10.0.22621.0 x64
你遇到了什么问题?
在vscode的两种内置高对比度主题(Default High Contrast Light 和 Default High Contrast)下,
Kimi Code 聊天 Webview 中被框住的代码的文本完全看不见。文字颜色与背景颜色都解析为白色,不选中时无法阅读。
复现步骤?
- 安装 Kimi Code VS Code 插件并打开 Kimi 聊天面板。
- 将 VS Code 颜色主题切换为 Default High Contrast Light 和 Default High Contrast(浅色/深色高对比度)。
- 触发一条包含带框代码文本的回复。
- 观察被框住的文本区域。
期望的行为是什么?
在深色高对比度主题( Default High Contrast)下,背景为黑色,且 中的文本为黄色(Dark+主题下的显示效果)
补充信息
No response
Contribution
- 我愿意自己提交修复此 bug 的 PR(请先等待维护者在本 issue 中批准)
- Dominant language
- TypeScript
- Stars
- 8.3k
- Forks
- 1.4k
- Avg merge
- 12h 6m
- Merged PRs (30d)
- 596
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MoonshotAI/kimi-code
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
MoonshotAI/kimi-code#5539 ·
Maintainers usually reply within 1 day
-
[Bug] Kimi RC workspace folder picker does not display symbolic link directoriesPossibly taken @markankamaransheogarat-sys claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
MoonshotAI/kimi-code#5296 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MoonshotAI/kimi-code#5062 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
MoonshotAI/kimi-code#5057 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
MoonshotAI/kimi-code#5025 ·
Maintainers usually reply within 1 day
All issues in MoonshotAI/kimi-code
Similar issues
-
Add Alice&BotOpen
Difficulty 1/5 Under an hour Newbie friendliness 72/100
slavakurilyak/awesome-ai-agents#1048 ·
-
bot:ai-assisted component:faucet github_actions security status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
midnightntwrk/midnight-faucet-api#215 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
NanmiCoder/cc-haha#2034 · 1 comment ·
Maintainers usually reply within 1 day
-
mobile prio:low
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
digitalfabrik/entitlementcard#3324 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day