Skip to content

[Bug]: Commentary-phase text leaks into user-visible output with openai-codex/gpt-5.4 #61734

Closed

Description

@joshrogers117

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Title

Commentary-phase text leaks into user-visible output with openai-codex/gpt-5.4

Summary

When using OpenClaw with openai-codex/gpt-5.4, internal commentary text is leaking into normal user-visible output in Telegram

Examples:

  • Need fix line quoting properly.
  • Need simpler use cat overwrite full file.
  • Need verify healthy.

This appears to be internal tool-work narration, not intended user-facing content.

Evidence

Session history shows these leaked messages are explicitly marked:

"phase":"commentary"

Normal replies in the same session are marked:

"phase":"final_answer"

This makes it look like a filtering/rendering bug rather than normal model behavior.

Suggested fix

Suppress or filter assistant content where:

textSignature.phase == "commentary"

Only user-facing phases like final_answer should be rendered in normal chat/session views.

Steps to reproduce

Repro

  1. Use openai-codex/gpt-5.4
  2. Ask for a multi-step task involving tool calls
  3. Observe commentary-style text leaking into output
  4. Check session history and confirm leaked entries are marked phase="commentary"

Expected behavior

Only final assistant replies should be shown to the user.

Actual behavior

Commentary-like internal text is visible in chat/session output.

OpenClaw version

Environment - OpenClaw 2026.4.2 (d74a122) - Runtime/model: openai-codex/gpt-5.4 - Auth: OpenAI Codex OAuth

Operating system

Ubuntu 24.04

Install method

No response

Model

openai-codex/gpt-5.4

Provider / routing chain

OpenClaw 2026.4.2 running with OpenAI Codex OAuth auth, model/runtime openai-codex/gpt-5.4, direct runtime.

Additional provider/model setup details

Image

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Activity

  1. added
    bug
    on Apr 6, 2026
  2. added
    bug:behavior
    on Apr 6, 2026
  3. steipete commented on Apr 6, 2026

    @steipete
    Contributor

    Closing as fixed by #61829, which merged in bbd0702.

    That patch suppresses commentary-phase partial output, prevents empty final_answer fallback leaks, and hardens the session-history/SSE sanitization path for this visible-text leak family. If you can still reproduce this on a build that includes #61829, please open a fresh issue with the exact version and a minimal repro.

  4. locked as resolved and limited conversation to collaborators on Apr 9, 2026
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

    bugbug:behavior

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions