Skip to content

审批模式 Approved for session 失效 #325

@WindwithNothing

Description

@WindwithNothing

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions