Skip to content

聊天面板代码块渲染丢失单词(Kimi Code for VS Code) #4716

Open

Description

@datimmor-byte

你运行的 Kimi Code 版本是?

Kimi Code for VS Code 扩展,模型 K2.8,Linux

你使用的是哪个开放平台/订阅?

VS Code 扩展

你使用的是哪个模型?

模型 K2.8

你的电脑平台是?

Linux

你遇到了什么问题?

现象:AI 回复中的 fenced code block 在客户端渲染时丢失了一个标识符。AI 生成的代码第 4 行为 for i in range215):,但聊天面板中显示为 for i in(215):(range 消失)。用户照抄渲染后的代码运行,报 TypeError: 'int' object is not iterable。

Image Image Image

复现步骤?

复现步骤:

在 VS Code 扩展聊天面板请求一段含 `range(... 的 Python 代码
观察渲染结果中的 for ... in ... 行
关键字偶发消失(非必现?)
连提交bug报告时给的网站都少了github字段
附件:两张截图(渲染缺失的代码块 + 运行报错 traceback)

备注:社区有其他用户报告类似"输出丢字"现象(K2 模型)。

Image

期望的行为是什么?

修改问题,给点补偿,太影响使用

补充信息

No response

Contribution

  • 我愿意自己提交修复此 bug 的 PR(请先等待维护者在本 issue 中批准)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions