Skip to content

After selecting "Do not ask again for commands with the same prefix," the task immediately terminates with this API error. #25608

Open

Description

@chengzheng123456

What version of the Codex App are you using (From “About Codex” dialog)?

26.527.3686.0

What subscription do you have?

订阅了套餐

What platform is your computer?

Windows

What issue are you seeing?

{"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages following tool_calls message)","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}

What steps can reproduce the bug?

codex询问我是否执行该指令时,我选择是并且同样开头的代码不重复询问,然后就直接报错并终止了任务

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    tool-callsIssues related to tool calling
    sandboxIssues related to permissions or sandboxing
    on Jun 1, 2026
  2. github-actions commented on Jun 1, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. changed the title [-]选择了 "同样开头的命令不再询问" 后,任务立即报此 API 错误终止。[/-] [+]After selecting "Do not ask again for commands with the same prefix," the task immediately terminates with this API error.[/+] on Jun 12, 2026
  4. etraut-openai commented on Jun 12, 2026

    @etraut-openai
    Contributor

    English translation:

    What version of the Codex App are you using (From “About Codex” dialog)?

    26.527.3686.0

    What subscription do you have?

    Subscribed to a plan

    What platform is your computer?

    Windows

    What issue are you seeing?

    {"error":{"message":"An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. (insufficient tool messages following tool_calls message)","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}

    What steps can reproduce the bug?

    When Codex asked whether to execute the command, I selected yes and chose not to be asked again for code with the same prefix. It then immediately reported an error and terminated the task.

    What is the expected behavior?

    No response

    Additional information

    No response

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

    appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions