You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Responses: reasoning tokens spent but Desktop thinking empty when only encrypted_content / empty summary arrives #38160
CLIIssues related to the Codex CLIappIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't working
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:
Prefer streaming/showing summary text (summary_text / response.reasoning_summary_text.delta).
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
Codex Desktop with model_reasoning_summary = "detailed" and a GPT-5.6-class model.
Long agentic turn (tools + Goal).
Observe thinking panel: encrypted-only notice or empty, while token usage includes reasoning tokens.
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.
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:
// 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.
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.summaryis 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.
CLIIssues related to the Codex CLIappIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't working
Activity
github-actions commentedon Aug 12, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
jdcodes1 commentedon Aug 18, 2026
One client-side mechanism worth ruling in/out (
main@ 1f41cc5): the summary parameter has a per-model kill switch.build_reasoningonly sendsreasoning.summarywhenmodel_info.supports_reasoning_summary_parameteris true:codex/codex-rs/core/src/client.rs
Lines 824 to 842 in 1f41cc5
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_contentpresent, zero readable summary, and no indication anything was suppressed.Discriminating check: capture one request (
RUST_LOG=codex_api=traceor a local proxy) and see whetherreasoning.summarywas present. If absent → catalog capability suppression (client-side surfacing bug: configuredmodel_reasoning_summarysilently 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-
nonebut either suppressed or unfulfilled, the thinking panel should state why it's empty instead of leaving effort sliders implying it works.RaviTharuma commentedon Sep 3, 2026
Traced the client-side path you flagged, on
main@ current HEAD (codex-rs/core/src/client.rs,build_reasoning):So your discriminating check is exactly right: this is a boolean AND — if either
supports_reasoning_summary_parameteris false for the resolvedModelInfo, or the configuredmodel_reasoning_summaryisNone, the client never sendsreasoning.summaryin 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 resolvedModelInfofor your session's model (or check the bundled catalog vs. whatever the client fetched live) and look atsupports_reasoning_summary_parameter. If it'sfalsefor a model that otherwise reportsreasoning_tokens > 0inoutput_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_parameteristrueandmodel_reasoning_summaryis non-none, thenreasoning.summaryis sent, and an empty/encrypted-only response is server-side (onlyencrypted_contentpopulated, nosummary_textdelta) — 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 = falsefor 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 withRUST_LOG=codex_api=traceaccess on an actually-empty-with-tokens-spent session confirms which branch it's landing in.feat: 推理行拿不到正文就明说;正文上限从 240/600 放到 2000