Skip to content

Responses: reasoning tokens spent but Desktop thinking empty when only encrypted_content / empty summary arrives #38160

Open

Description

@RaviTharuma

What happened

On Codex Desktop (and CLI), some Responses turns show:

Codex is reasoning, but the upstream Responses API exposed this reasoning block only as encrypted private reasoning…

or no thinking panel content at all, even when:

  • model_reasoning_effort is high/ultra
  • model_reasoning_summary is auto or detailed
  • usage reports output_tokens_details.reasoning_tokens > 0

So the model did think, but the UI has nothing readable to show.

Why it matters

Users cannot tell whether the agent is making progress during long agentic/Goal turns. Effort sliders appear active, but thinking is blank or a dead-end encrypted notice.

Expected

When model_reasoning_summary is not none and the Responses API returns a reasoning item:

  1. Prefer streaming/showing summary text (summary_text / response.reasoning_summary_text.delta).
  2. If only encrypted_content is present, either:
    • still request/attach a plaintext summary when the account/model supports it, or
    • document clearly that this backend path cannot surface thinking (not a misconfigured effort slider).

Repro sketch

  1. Codex Desktop with model_reasoning_summary = "detailed" and a GPT-5.6-class model.
  2. Long agentic turn (tools + Goal).
  3. Observe thinking panel: encrypted-only notice or empty, while token usage includes reasoning tokens.

Related config

model_reasoning_effort = "ultra"
model_reasoning_summary = "detailed"

Catalog field default_reasoning_summary defaults to "none" in the official models cache, which makes this easy to hit if the session does not override it.

Environment

  • Codex CLI/Desktop recent (0.147.x-class)
  • Responses wire API
  • No logs/secrets attached

Ask

  • Confirm whether empty summary + non-zero reasoning_tokens is expected for some backends.
  • If not, fix request/response handling so detailed/auto summaries reliably populate the thinking panel for agentic turns.

Activity

  1. added
    bug
    CLI
    app
    app-server
    on Aug 12, 2026
  2. github-actions commented on Aug 12, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. jdcodes1 commented on Aug 18, 2026

    @jdcodes1

    One client-side mechanism worth ruling in/out (main @ 1f41cc5): the summary parameter has a per-model kill switch. build_reasoning only sends reasoning.summary when model_info.supports_reasoning_summary_parameter is true:

    fn build_reasoning(
    model_info: &ModelInfo,
    effort: Option<ReasoningEffortConfig>,
    summary: ReasoningSummaryConfig,
    ) -> Reasoning {
    Reasoning {
    effort: effort
    .or_else(|| model_info.default_reasoning_level.clone())
    .map(reasoning_effort_for_request),
    summary: (model_info.supports_reasoning_summary_parameter
    && summary != ReasoningSummaryConfig::None)
    .then_some(summary),
    // When Responses Lite is disabled, omit context so Responses uses the default,
    // which is currently `current_turn`.
    context: model_info
    .use_responses_lite
    .then_some(ReasoningContext::AllTurns),
    }
    }

    The bundled catalog sets it true for every model, but the model catalog is also fetched live from the service — a served entry flipping that flag (per model or account tier) silently drops the summary request while the effort slider stays fully active. That produces exactly your state: reasoning tokens spent, encrypted_content present, zero readable summary, and no indication anything was suppressed.

    Discriminating check: capture one request (RUST_LOG=codex_api=trace or a local proxy) and see whether reasoning.summary was present. If absent → catalog capability suppression (client-side surfacing bug: configured model_reasoning_summary silently ignored); if present but only encrypted content returned → server-side, and your expected-behavior #2 (say so in the UI) is the fix.

    Either way the UI gap is the same: when summary is configured non-none but either suppressed or unfulfilled, the thinking panel should state why it's empty instead of leaving effort sliders implying it works.

  4. RaviTharuma commented on Sep 3, 2026

    @RaviTharuma
    Author

    Traced the client-side path you flagged, on main @ current HEAD (codex-rs/core/src/client.rs, build_reasoning):

    summary: (model_info.supports_reasoning_summary_parameter
        && summary != ReasoningSummaryConfig::None)
        .then_some(summary),

    So your discriminating check is exactly right: this is a boolean AND — if either supports_reasoning_summary_parameter is false for the resolved ModelInfo, or the configured model_reasoning_summary is None, the client never sends reasoning.summary in the request at all. There's no separate "sent but empty" telemetry event on the wire; the request body itself just omits the field. So one client-side repro that doesn't require any proxy/trace capture: dump the resolved ModelInfo for your session's model (or check the bundled catalog vs. whatever the client fetched live) and look at supports_reasoning_summary_parameter. If it's false for a model that otherwise reports reasoning_tokens > 0 in output_tokens_details, that's the client-side suppression path — reasoning happened server-side, summary was never requested, and the UI has nothing to show because nothing was asked for.

    If supports_reasoning_summary_parameter is true and model_reasoning_summary is non-none, then reasoning.summary is sent, and an empty/encrypted-only response is server-side (only encrypted_content populated, no summary_text delta) — at that point your ask #2 (state why it's empty rather than implying the effort slider isn't working) is the only fix reachable from the client.

    Neither branch is something I can fix without a maintainer: the first needs someone to confirm whether the served (non-bundled) catalog is expected to ever set supports_reasoning_summary_parameter = false for a model that still burns reasoning tokens, and the second needs a UI decision on how to surface "reasoning happened, summary unavailable for this backend" distinctly from "summary disabled by config." Happy to help wire the distinguishing message once someone with RUST_LOG=codex_api=trace access on an actually-empty-with-tokens-spent session confirms which branch it's landing in.

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

    CLIappapp-serverbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions