MoonshotAI / MoonshotAI/kimi-cli

重启kimi cli 会发送历史图片 污染会话 || Restarting kimi cli will send historical pictures and pollute the session.

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

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
11.4k
Forks
1.3k
Avg merge
9h 47m
Merged PRs (30d)
2

Description

What version of Kimi Code CLI is running?

1.46.0

Which open platform/subscription were you using?

/login

Which model were you using?

kimi-for-coding

What platform is your computer?

ubuntu x64 winodws10 64

What issue are you seeing?

启动kimi ,进入一个会话 ,在 web端发送图片 , 之后退出kimi(重启电脑,或者命令行重新 输入kimi,然后进入web端),此时再发送 信息 ,会把之前发送的图片 再一次发送出去。实测这不是显示bug , 因为kimi 会 识别图片内容的信息。 长时间进行会话之后 图片 会越来越多 ,每次重启会话 都会把 之前发给kimi的 图片再发送一次,导致会话污染。 如果 对一个项目重新 init 就不会出现这个问题

What steps can reproduce the bug?

启动kimi ,进入一个会话 ,在 web端发送图片 , 之后退出kimi(重启电脑,或者命令行重新 输入kimi,然后进入web端),此时再发送 信息 ,会把之前发送的图片 再一次发送出去。实测这不是显示bug , 因为kimi 会 识别图片内容的信息。 长时间进行会话之后 图片 会越来越多 ,每次重启会话 都会把 之前发给kimi的 图片再发送一次,导致会话污染。 如果 对一个项目重新 init 就不会出现这个问题

What is the expected behavior?

重启电脑或者kimi 不会把 历史会话中的图片再发送一次

Additional information

No response


What version of Kimi Code CLI is running?

1.46.0

Which open platform/subscription were you using?

/login

Which model were you using?

kimi-for-coding

What platform is your computer?

ubuntu x64 winodws10 64

What issue are you seeing?

Start kimi, enter a session, send pictures on the web side, and then exit kimi (restart the computer, or re-enter kimi on the command line, and then enter the web side). If you send a message at this time, the previously sent pictures will be sent out again. According to actual testing, this is not a display bug, because kimi will recognize the information of the image content. After a long session, there will be more and more pictures. Every time the session is restarted, the pictures previously sent to Kimi will be sent again, causing session pollution. This problem will not occur if you re-init a project

What steps can reproduce the bug?

Start kimi, enter a session, send pictures on the web side, and then exit kimi (restart the computer, or re-enter kimi on the command line, and then enter the web side). If you send a message at this time, the previously sent pictures will be sent out again. According to actual testing, this is not a display bug, because kimi will recognize the information of the image content. After a long session, there will be more and more pictures. Every time the session is restarted, the pictures previously sent to Kimi will be sent again, causing session pollution. This problem will not occur if you re-init a project

What is the expected behavior?

Restarting the computer or kimi will not send the pictures in the historical conversation again.

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

Start by reproducing the issue on Kimi Code CLI 1.46.0: send an image in a web session, restart Kimi or the computer, reopen the session, and send another message. Trace session-history restoration and image handling; done means restarting does not resend images from the historical conversation while the session continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.