Skip to content

[Bug]: zed/gpt-* returns 400 for include output.encrypted_content #8037

Closed as not planned

Description

@andrew05060414

Summary

Routing Codex Desktop to a zed/gpt-* model (observed with zed/gpt-6.1-sol) fails on every turn with HTTP 400 from Zed's hosted OpenAI endpoint:

Provider error 400: failed to parse OpenAI Responses API request: unknown variant `output.encrypted_content`, expected `reasoning.encrypted_content`

Cause

Codex Desktop sends include: ["output.encrypted_content"] on every turn. stripUnsupportedOutputInclude in src/adapters/openai-responses/request-strips.ts already removes it for xAI, Meta and Azure (see the gate in src/adapters/openai-responses/passthrough.ts), but the Zed adapter (src/adapters/zed.ts, zedProvider === "open_ai") forwards include unchanged, and Zed's Responses decoder only accepts reasoning.encrypted_content.

Reproduce

  1. Add the Zed provider, select zed/gpt-6.1-sol in Codex Desktop.
  2. Send any prompt (e.g. "who is the current prime minister of Japan, do not search").
  3. The turn fails with the 400 above.

Expected

The output.encrypted_content include entry is dropped for Zed OpenAI models, as it already is for xAI/Meta/Azure.

Environment

OpenCodex 2.93.0 fork build; upstream/dev at 2.96.0 has the same code path (no strip in src/adapters/zed.ts).

Suggested fix

In the open_ai branch of src/adapters/zed.ts, filter output.encrypted_content out of providerRequest.include and delete include if it becomes empty. I have this fix locally and can open a PR.

Activity

  1. added
    bug
    on Oct 31, 2026
  2. github-actions commented on Oct 31, 2026

    @github-actions
    Contributor

    Issue closed: insufficient detail

    Thanks for taking the time to submit this issue. It was closed automatically because the structured report is missing information needed to evaluate or reproduce it.

    • Reproduction is empty.

    Please edit the issue to add:

    • List the exact steps to reproduce the problem.

    See the Contributing guide for details.

    Once the report passes the automated checks, it will be reopened automatically unless a maintainer has changed its state.

  3. Ingwannu commented on Oct 31, 2026

    @Ingwannu
    Owner

    I checked current dev 63de499e1: Zed's open_ai delegate builds a Responses body and the Zed wrapper has no local output.encrypted_content include filter. The shared passthrough's existing filter is destination-gated to xAI/Meta/Azure, so the reported Zed 400 is consistent with the source path; I have not reproduced it against a live Zed account.

    Since you already have a local fix, please open that focused PR against dev rather than having a maintainer duplicate your branch. Reuse the existing request-strip helper where suitable, scope it to Zed's OpenAI branch, and test mixed includes, output-only removal/deletion, preservation of reasoning.encrypted_content, unchanged caller input and unchanged non-OpenAI Zed branches. Update the owning Zed/adapter contract.

    This issue was closed by the quality bot, not marked fixed. Please move the supplied steps under the form's exact ### Reproduction heading (currently ### Reproduce) and complete the current bug form's client/version/OS fields. That lets the default-branch validator reopen it without discarding your technical evidence. No live provider request or history edit was made here.

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

    bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions