MoonshotAI / MoonshotAI/kimi-code

从视觉模型切换到纯文本模型后,会话卡死

Open
#2,986 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

What version of Kimi Code is running?

0.36.1

Which open platform/subscription were you using?

Kimi Code

Which model were you using?

GLM-5.3

What platform is your computer?

MacOS: Darwin 25.5.0 arm64 arm

What issue are you seeing?

从视觉模型切换到纯文本模型后,会话报错卡死:

Error: [provider.api_error] 400 messages.content.type is invalid, allowed values: ['text']
What steps can reproduce the bug?
  1. 先用 K3 等视觉模型进入会话,交互过程发送过图片
  2. 模型用量限额,切换到纯文本模型,继续处理剩余非视觉任务时,直接报错,无法继续
What is the expected behavior?

希望切换纯文本模型后,能继续推进会话执行后续任务

Additional information

No response

Contributor guide

Open the contributing guide

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.

Research direction

Reproduce the issue by sending an image with a visual model, switching to a text-only model, and continuing the session. Trace the conversation message handling and model-switch path to find where non-text content remains in the request. Done means the session continues after the switch without the messages.content.type validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.