Skip to content

Hide GPT-5.6 reasoning-summary empty placeholders #6524

Description

@pecigonzalo

Problem

With openai-codex/gpt-5.6-terra and gpt-5.6-sol, visible thinking blocks sometimes show:

**Planning configuration reading**

<\!-- -->

The comment is present in the completed OpenAI reasoning item's summary, so Pi is not dropping readable reasoning. A comparison run with gpt-5.5 did not produce it.

Expected behavior

Do not render a summary part that is only a bold status heading followed by an empty HTML comment. Preserve literal comments in real content, for example Use `<\!-- -->` in JSX..

Prior art

OpenAI Codex handles this exact pattern as a standalone empty placeholder:

Suggested fix

Keep reasoning-summary parts separate until response.reasoning_summary_part.done. Suppress only the exact placeholder form from displayed thinking, while retaining the original reasoning item in thinkingSignature for replay.

Environment: Pi 0.80.6, openai-codex, hideThinkingBlock: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions