[Bug] 高对比度主题下 Kimi Code Webview 中带框文本显示为白底白字

Open Beginner friendly
#5,256 1 comment 0 reactions 0 assignees View on GitHub

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

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

bug
你运行的 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 中被框住的代码的文本完全看不见。文字颜色与背景颜色都解析为白色,不选中时无法阅读。

image
复现步骤?
  1. 安装 Kimi Code VS Code 插件并打开 Kimi 聊天面板。
  2. 将 VS Code 颜色主题切换为 Default High Contrast Light 和 Default High Contrast(浅色/深色高对比度)。
  3. 触发一条包含带框代码文本的回复。
  4. 观察被框住的文本区域。
期望的行为是什么?

在深色高对比度主题( 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MoonshotAI/kimi-code

All issues in MoonshotAI/kimi-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.