Skip to content

shell_command 调用因未知字段 code_mode_host_duration_ns 解析失败 #656

Open

Description

@GJKen

Codex 无法通过工具读取本地仓库状态,也无法执行其他 PowerShell 命令。用户只能手动在终端执行命令并粘贴结果。

环境

  • 操作系统:Windows
  • Shell:Windows PowerShell
  • 工具:Codex 1.8.0
  • Codeg: 0.30.2

复现步骤

  1. 在 Codex 会话中调用 functions.exec。
  2. 通过 tools.shell_command 执行以下命令:
git status --short --branch
  1. 也尝试过只执行单条命令,以及并行执行多个只读 Git 命令。

实际结果

工具调用失败,未返回命令输出:

failed to read code-mode host message:
failed to decode code-mode IPC frame:
unknown field `code_mode_host_duration_ns`,
expected one of `cell_id`, `content_items`, `error_text`

单条调用和并行调用都会出现相同错误。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions