MoonshotAI / MoonshotAI/kimi-code
审批模式 Approved for session 失效
Open
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.7.0
Which open platform/subscription were you using?
kimi code
Which model were you using?
kimi-k2.6
What platform is your computer?
No response
What issue are you seeing?
审批模式中选择Approved for session,下次仍需要审批。
What steps can reproduce the bug?
由于审批不会被/export导出,以下是从命令行中复制的对话。第一段Write不同文件时就会提示审批,第二段执行同样的bash命令也会提示审批。
✨ 我正在进行测试,接下来按照我的提示进行操作即可,不需要复杂的分析。
在当前文件写入一个文件,a.txt,写入"1"
● 用户要求我在当前工作目录下创建一个文件 `a.txt`,并写入内容 `"1"`。这是一个非常简单的任务,不需要复杂分析,直接用
`Write` 工具即可。
● Used Write (a.txt) · 1 line
1 1
Approved for session: Writing a.txt
● 用户要求我完成一个简单任务:在当前目录创建 a.txt 并写入 "1"。Write 工具已经成功执行,写入了 1
字节。任务已经完成,我应该简洁地回复用户确认。
● 已写入完成,a.txt 内容为 1。
✨ 再执行一次
● 用户要求"再执行一次",意思是在当前文件再次写入 a.txt,写入"1"。这是重复之前的操作,直接用 Write 工具即可。
● Used Write (a.txt) · 1 line
1 1
● Write 工具已成功执行,再次写入了 a.txt 文件,内容为 "1"。任务完成,简洁回复用户即可。
● 已再次写入完成,a.txt 内容仍为 1。
✨ 在b.txt 写入1
● 用户要求在 b.txt 中写入 "1"。这是一个简单的写入操作,直接用 Write 工具即可。
● Used Write (b.txt) · 1 line
1 1
Approved for session: Writing b.txt
● Write 工具已成功执行,写入了 b.txt 文件,内容为 "1"。任务完成,简洁回复用户即可。
● 已写入完成,b.txt 内容为 1。
Exporting session as Markdown…
✨ 再执行一次 -c
● 用户要求再执行一次 `python -c "print('1')"`。这是一个简单的命令执行请求,直接用 Bash 工具执行即可。
● Used Bash (python -c "print('1')")
Approved for session: Running: python -c "print('1')"
● 用户要求"再执行一次 -c",我已经执行了 `python -c "print('1')"`,输出是 `1`。任务完成,简洁回复即可。
● 输出:
1
✨ 好的,再执行一次
● 用户要求"再执行一次",指的是再次执行 `python -c "print('1')"`。这是重复之前的操作,直接用 Bash 执行即可。
● Used Bash (python -c "print('1')")
Approved for session: Running: python -c "print('1')"
● 用户要求"再执行一次",我已经执行了 `python -c "print('1')"` 并得到了输出 `1`。任务完成,简洁回复即可。
● 输出:
1
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 CLI approval flow for the Write and Bash entry points, using the reported repeated commands and different files as reproduction cases. Check whether selecting “Approved for session” is retained across subsequent tool calls and after session export; done means later matching calls no longer request approval.
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
- 45/100