Skip to content

automation_update tool schema is rejected by strict OpenAI-compatible providers #39848

Open

Description

@MyQiongbao

What happened?

Codex Desktop can fail before the model responds when a strict OpenAI-compatible provider validates the bundled automation_update tool schema.

Observed error:

Invalid schema for function 'automation_update': schema must be a JSON Schema of 'type: "object"', got 'type: "None"'

This appears related to the existing codex_app__automation_update / automation_update schema issue, where the root schema is not emitted as a normal JSON Schema object. Some providers reject it during tool/function schema validation.

Environment

  • Product: Codex Desktop
  • Local Codex web Last Version: 151.0.7922.170
  • Bundled browser plugin version observed locally: 26.818.31338
  • OS: Windows
  • Provider type: OpenAI-compatible strict provider / non-OpenAI endpoint

Expected behavior

The emitted automation_update tool schema should be accepted by strict JSON Schema validators.

At minimum, the top-level schema should be a JSON Schema object, for example:

{
  "type": "object",
  "properties": {}
}

or otherwise be normalized so strict providers do not reject it.

Actual behavior

The provider rejects the request before the model can respond because the function schema root is reported as type: "None" / type: null, rather than type: "object".

Impact

  • Requests fail immediately at schema validation time.
  • The failure blocks normal Codex usage with strict OpenAI-compatible providers.
  • Users cannot work around this from the prompt side.

Related issues

Possibly related:

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    windows-osIssues related to Codex on Windows systems
    custom-modelIssues related to custom model providers (including local models)
    tool-callsIssues related to tool calling
    on Aug 21, 2026
  2. wenlinl commented on Sep 15, 2026

    @wenlinl

    Same failure class, but a distinct trigger on the current build: automation_update is deferred rather than eagerly emitted, and the broken request is the one after tool_search discovers a deferred app/MCP tool — it then carries parameters: {} and is rejected. The thread stays broken on every subsequent turn.

    Full repro (DeepSeek Responses) + minimal payload matrix: #45585

  3. saevios commented on Oct 12, 2026

    @saevios

    I have this issue with the Codex Desktop app, and using the model-router Foundry model. CLI and VSCode implementation is working fine. It is just the Desktop app that is not. I receive this error:

    Invalid schema for function 'automation_update': schema must have type 'object' and not have 'oneOf'/'anyOf'/'allOf'/'enum'/'const'/'not' at the top level.

    Desktop app details:
    Version 26.1007.21434
    Released 9 Oct 2026

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 appautomationsbugSomething isn't workingcustom-modelIssues related to custom model providers (including local models)tool-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