Skip to content

[Desktop 26.721.4979.0] list_threads schema advertises query but runtime rejects it as unrecognized #35377

Closed

Description

@aidawilliam41-ops

Environment

  • Codex Desktop: 26.721.4979.0
  • Bundled/configured CLI: 0.146.0-alpha.3.1
  • Windows 11 25H2, build 26200.8037

Summary

The list_threads schema surfaced to the caller advertises an optional query field, but the runtime validator rejects that exact field as unrecognized.

Surfaced schema:

type list_threads = (_: { limit?: number, query?: string }) => any;

The tool description also said:

Use an optional query to find a specific thread before reading or steering it.

Exact sanitized call:

{"limit":20,"query":"<thread-title search>"}

Runtime rejection:

list_threads received invalid arguments: arguments: Unrecognized key: "query".

The occurrence was bounded between 2026-07-25 19:14:14.887 MSK and 19:16:25.125 MSK. The exact tool-call id and separate app-tool wrapper version were not surfaced.

Expected behavior

Either:

  1. query is accepted and filters the result as documented; or
  2. the generated/surfaced schema and description do not advertise it.

Actual behavior and impact

The caller receives a valid-looking field that fails before thread listing begins. This adds a failed tool turn and can break agents or scheduled workflows that trust the surfaced schema.

The bounded workaround is to omit query, use the supported result limit, and filter returned tasks locally. That workaround does not resolve the schema/runtime contract mismatch.

Related issue

#35030 reports list_threads hanging in scheduled runs. It is related to the same tool surface but does not report this deterministic query schema/runtime mismatch.

Suggested fix

  • Generate the surfaced schema from the same validator used at runtime.
  • Add a parity test that submits every advertised optional field.
  • If query is intentionally unsupported, remove it from both the schema and description.
  • Return a structured capability/version mismatch when a stale wrapper calls a newer validator.

No task titles, thread ids, usernames, local paths, credentials, or private logs are included.

Activity

  1. added
    bug
    app
    app-server
    on Jul 25, 2026
  2. aidawilliam41-ops commented on Aug 6, 2026

    @aidawilliam41-ops
    Author

    Additional schema-bound mismatch: limit maximum is not surfaced

    A separate deterministic mismatch was observed on the same list_threads tool surface.

    The surfaced type allowed an unconstrained number:

    type list_threads = (_: { limit?: number, query?: string }) => any;
    

    Exact sanitized call:

    {"limit":100}

    Runtime rejection:

    Too big: expected number to be <=50
    

    Changing only the value to 50 succeeded.

    Expected: the surfaced JSON schema includes maximum: 50, or the runtime accepts values allowed by the schema.

    Actual impact: a caller that trusts the advertised schema incurs a failed tool turn before correcting to the undocumented bound.

    Suggested fix: generate numeric constraints from the same runtime validator and add a parity test for advertised bounds. The exact separate tool-wrapper version for this occurrence was not surfaced.

  3. aidawilliam41-ops commented on Aug 20, 2026

    @aidawilliam41-ops
    Author

    Still reproducible on Desktop 26.818.2441.0

    The same tool-contract mismatch remains present in the current Windows Desktop package.

    Current surfaced declaration:

    list_threads({ limit?: number, query?: string })
    

    The current description still says that the optional query can find a specific task before reading or steering it.

    A bounded read-only probe using a unique nonmatching query:

    {"limit":1,"query":"<unique-nonmatching-probe>"}

    returns:

    list_threads received invalid arguments: arguments: Unrecognized key: "query".
    

    The related numeric constraint also remains absent from the surfaced declaration. A separate read-only call with:

    {"limit":100}

    returns:

    list_threads received invalid arguments: limit: Too big: expected number to be <=50.
    

    Expected: either the runtime accepts query, or the generated declaration and description omit it; the surfaced schema should also expose maximum: 50 for limit.

    No task, project, configuration, or Desktop state was changed by these probes.

  4. goodman-oai commented on Nov 16, 2026

    @goodman-oai
    Contributor

    Closing as completed. The shipped list_threads schemas in Windows 26.1111.2228.0 and macOS 26.1111.21308 both omit query and declare a maximum limit of 50. The live Desktop tool accepted limit: 1, rejected limit: 51 with the documented ceiling, and rejected the undeclared query field. Original schema and runtime comparison

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

    appapp-serverbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions