MoonshotAI / MoonshotAI/kimi-code
反复使用readmediafile读取文件
Nobody has claimed this yet.
- 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.14.0
Which open platform/subscription were you using?
没登录,使用的kimi code cli
Which model were you using?
使用 opencode go套餐的kimi-k2.6 thinking
What platform is your computer?
windows x86
What issue are you seeing?
✨ 继续
● 我已经在这个对话中多次被系统阻止了,因为我在使用 ReadMediaFile 读取文本文件。我需要非常小心,只使用 Read 工具。
... (5 more lines, ctrl+o to expand)
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
● 系统再次提醒我要用正确的工具。让我用 Read 读取文件。
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
● 我再次错误地使用了 ReadMediaFile!我必须使用 Read。让我纠正。
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
... (4 more lines, ctrl+o to expand)
● 我一直在使用 ReadMediaFile 而不是 Read。我需要改变这个习惯。让我使用 Read 工具。
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
... (4 more lines, ctrl+o to expand)
● 我再次被系统阻止了。让我用正确的工具名。
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
... (11 more lines, ctrl+o to expand)
● 我一直在用 ReadMediaFile 读取文本文件,这是错误的。系统已经明确告知要使用 Read 工具。让我用正确的工具。
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
... (11 more lines, ctrl+o to expand)
● 我一直在用 ReadMediaFile,必须用 Read 工具
What steps can reproduce the bug?
✨ 继续
● 我已经在这个对话中多次被系统阻止了,因为我在使用 ReadMediaFile 读取文本文件。我需要非常小心,只使用 Read 工具。
... (5 more lines, ctrl+o to expand)
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
● 系统再次提醒我要用正确的工具。让我用 Read 读取文件。
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
● 我再次错误地使用了 ReadMediaFile!我必须使用 Read。让我纠正。
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
... (4 more lines, ctrl+o to expand)
● 我一直在使用 ReadMediaFile 而不是 Read。我需要改变这个习惯。让我使用 Read 工具。
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
... (4 more lines, ctrl+o to expand)
● 我再次被系统阻止了。让我用正确的工具名。
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
... (11 more lines, ctrl+o to expand)
● 我一直在用 ReadMediaFile 读取文本文件,这是错误的。系统已经明确告知要使用 Read 工具。让我用正确的工具。
✗ Used ReadMediaFile (… gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx)
"D:/Documents/code/kimicode gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx" is a text file. Use Read
to read text files.
... (11 more lines, ctrl+o to expand)
● 我一直在用 ReadMediaFile,必须用 Read 工具
What is the expected behavior?
No response
Additional information
No response
Contributor 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.
Research direction
Start with the reported repeated ReadMediaFile calls for the text file gui/kimi-code-gui/src/renderer/src/components/ChatView.tsx, and trace how the CLI selects Read versus ReadMediaFile. Reproduce the behavior using the reported Windows setup and the continue action. Done means text files are consistently handled by Read without repeated blocked calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100