Skip to content

model_reasoning_summary="detailed" yields heading-only reasoning summaries with no prose #34873

Description

@LiuSZZ

What happened

With Codex CLI 0.145.0 and model_reasoning_summary = "detailed", completed reasoning items can contain only a generated bold status heading, with no explanatory prose.

For example, the persisted completed reasoning item contained:

{
  "type": "reasoning",
  "summary": [
    {
      "type": "summary_text",
      "text": "**Deriving perfect squares concisely**"
    }
  ],
  "content": null
}

The payload itself is heading-only, so this is not solely a TUI rendering problem. The behavior has been observed with both GPT-5.5 and GPT-5.6-sol.

What I expected

A completed reasoning summary should contain readable explanatory prose at the requested detailed level.

If no prose was generated, Codex should omit the empty summary instead of exposing a generated status heading as the complete reasoning summary.

Steps to reproduce

  1. Use Codex CLI 0.145.0 with the first-party OpenAI provider.

  2. Configure reasoning summaries:

    model_reasoning_effort = "high"
    model_reasoning_summary = "detailed"
    model_supports_reasoning_summaries = true
    hide_agent_reasoning = false
    show_raw_agent_reasoning = true
  3. Run a multi-step reasoning prompt with machine-readable output:

    codex exec --ephemeral --json \
      --skip-git-repo-check \
      -m gpt-5.5 \
      -c 'model_reasoning_effort="high"' \
      -c 'model_reasoning_summary="detailed"' \
      -c 'model_supports_reasoning_summaries=true' \
      "Solve the 100 doors puzzle and briefly derive which doors remain open."
  4. Inspect the completed reasoning item in exec --json output or the persisted session data.

  5. Observe that the summary may contain only a generated bold heading, without any prose after it.

The behavior appears to be intermittent or task-shape dependent: some short runs emit no reasoning summary at all, while affected runs emit a heading-only summary.

Additional context

Related documentation:

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingexecIssues related to the `codex exec` subcommandmodel-behaviorIssues related to behaviors exhibited by the model

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions