codex - 💡(How to fix) Fix [P0 / Blocker] Remote compact task fails 100% with "tools.defer_loading requires tools.tool_search" — GPT-5.5 unusable at context limit, no client-side workaround [3 comments, 4 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19486Fetched 2026-04-26 05:16:27
View on GitHub
Comments
3
Participants
4
Timeline
13
Reactions
0
Author
Timeline (top)
labeled ×4commented ×3cross-referenced ×3unlabeled ×2

Error Message

As soon as the conversation hits the compact threshold:

``` Error running remote compact task: { "error": { "message": "Invalid Value: 'tools.defer_loading'. Deferred tools require tools.tool_search.", "type": "invalid_request_error", "param": "tools.defer_loading", "code": null } } ```

The session stalls. Every retry reproduces the same 400. The conversation cannot progress.

Root Cause

Codex becomes unusable the moment any non-trivial conversation reaches the auto-compact threshold. 100% reproducible. No viable client-side workaround — rolling back the desktop app does not help because the failing call is constructed server-side.

Fix Action

Fix / Workaround

Codex becomes unusable the moment any non-trivial conversation reaches the auto-compact threshold. 100% reproducible. No viable client-side workaround — rolling back the desktop app does not help because the failing call is constructed server-side.

Why the obvious workarounds do not work

  • GPT-5.5 + Codex desktop is non-functional for any user with the default plugin set as soon as a conversation fills.
  • This is the flagship model from last week's launch.
  • There is no preserved-functionality workaround.
  • The fix does not require a client release — it is a pure server-side correction in the compact-task request builder.
RAW_BUFFERClick to expand / collapse

Severity: Blocker / P0

Codex becomes unusable the moment any non-trivial conversation reaches the auto-compact threshold. 100% reproducible. No viable client-side workaround — rolling back the desktop app does not help because the failing call is constructed server-side.

This bug effectively makes the headline GPT-5.5 launch experience on Codex desktop dead on arrival for anyone running the default plugin set.

Environment

  • Codex desktop (macOS, Apple Silicon)
    • Reproduced on 26.422.30944 (current)
    • Reproduced on 26.422.21459 after manual rollback — identical failure
  • Model: GPT-5.5, reasoning effort `xhigh`
  • Plugins enabled (default-ish set): `github`, `browser-use`, `documents`, `spreadsheets`, `presentations`, `computer-use`

Error

As soon as the conversation hits the compact threshold:

``` Error running remote compact task: { "error": { "message": "Invalid Value: 'tools.defer_loading'. Deferred tools require tools.tool_search.", "type": "invalid_request_error", "param": "tools.defer_loading", "code": null } } ```

The session stalls. Every retry reproduces the same 400. The conversation cannot progress.

Reproduction

  1. Install Codex desktop 26.422.x on Apple Silicon.
  2. Select GPT-5.5.
  3. Keep default plugins enabled so tool descriptions cross the ~10% context threshold that auto-enables `tool_search` + `defer_loading`.
  4. Work normally until the conversation approaches the compact threshold.
  5. The remote compact endpoint returns the 400 above — every time, with no recovery path.

Likely root cause

The server-side compact task (`chatgpt.com/backend-api/codex/responses/compact`) rebuilds the Responses API payload with `defer_loading` on individual tool entries but omits the paired `tool_search` entry at the top level of the `tools` array. The Responses API then rejects its own internally-constructed request. This regression coincides with "tool discovery enabled by default" in the recent changelog.

In other words: the server is failing its own schema validation against itself.

Why the obvious workarounds do not work

  • Rolling back the desktop client (30944 → 21459): identical failure. Compact is remote — client version is irrelevant.
  • Starting new threads: resets context, but any substantive session hits the same wall again.
  • Switching to GPT-5.4: `defer_loading` was introduced in 5.4, so it almost certainly exercises the same path.
  • Disabling plugins until tool descriptions drop under the ~10% threshold is the only thing that might avoid it — i.e., asking paying users to disable advertised features to get the product to function.

Impact

  • GPT-5.5 + Codex desktop is non-functional for any user with the default plugin set as soon as a conversation fills.
  • This is the flagship model from last week's launch.
  • There is no preserved-functionality workaround.
  • The fix does not require a client release — it is a pure server-side correction in the compact-task request builder.

Requested fix

Either:

  • (a) Include `tool_search` in the rebuilt compact request whenever any tool entry carries `defer_loading`, or
  • (b) Strip `defer_loading` from tool entries in the rebuilt compact request when `tool_search` is intentionally omitted.

Please prioritize. This is a top-of-funnel regression on a paid flagship model.

Related

  • #19009 — Compact fails in CLI and VS Code Extension
  • #19279 — Experimental feature check disabling app startup
  • #19295 — White screen on v26.422.21637 (Pro)
  • #19370 — GPT-5.5 not usable in Codex App for remote projects

extent analysis

TL;DR

The server-side compact task needs to include tool_search in the rebuilt compact request whenever any tool entry carries defer_loading, or strip defer_loading from tool entries when tool_search is omitted.

Guidance

  • Verify that the tool_search entry is included at the top level of the tools array in the compact request when defer_loading is present.
  • Check the server-side compact task logic to ensure it correctly handles the defer_loading and tool_search parameters.
  • Consider temporarily disabling the default plugin set or reducing the context threshold to avoid hitting the compact threshold.
  • Review related issues (#19009, #19279, #19295, #19370) to ensure the fix does not introduce new problems.

Example

No code snippet is provided as the issue is related to server-side logic and no specific code is mentioned.

Notes

The fix requires a server-side correction and does not need a client release. The issue is specific to the GPT-5.5 model and the default plugin set.

Recommendation

Apply workaround (b) - Strip defer_loading from tool entries in the rebuilt compact request when tool_search is intentionally omitted, as it seems to be a more straightforward solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING