Skip to content

Chat UI renders NO_REPLY directive as raw text instead of suppressing it #882

Closed

Description

@shanselman

Summary

The NO_REPLY directive is visible as raw text in the Windows tray chat UI instead of being suppressed before rendering.

Expected behavior

NO_REPLY is an internal OpenClaw signal meaning the agent has nothing to say. It should be intercepted and suppressed — the message should never be displayed to the user.

Actual behavior

The raw text NO_REPLY appears as a chat message in the Windows tray UI.

Notes

  • This works correctly on other surfaces (e.g. webchat)
  • The Windows tray node is not stripping/handling the directive before rendering
  • Seen on: OpenClaw Windows Tray (cli)

Activity

  1. clawsweeper commented on Jun 28, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 28, 2026, 3:52 AM ET / 07:52 UTC.

    Summary
    Keep open: current main does not show a NO_REPLY suppression guard in the tray live/history chat ingestion path, so a narrow bug fix remains valid.

    Reproducibility: yes. from source inspection, but not from a live tray run: a non-empty assistant ChatMessageInfo with text NO_REPLY reaches the assistant render path because current guards only drop empty text, missing session keys, aborted threads, and late non-final frames.

    Next step
    The report is narrow, source-supported, and has clear likely files and validation, but live tray proof still needs to be collected during the fix.

    Review details

    Best possible solution:

    Add a narrow suppression guard for exact NO_REPLY assistant/control-directive payloads in the shared chat ingestion path used by the tray, with regression tests for live events and any history path that can carry the directive.

    Do we have a high-confidence way to reproduce the issue?

    Yes from source inspection, but not from a live tray run: a non-empty assistant ChatMessageInfo with text NO_REPLY reaches the assistant render path because current guards only drop empty text, missing session keys, aborted threads, and late non-final frames.

    Is this the best way to solve the issue?

    Yes, a narrow source-level fix is appropriate; the safest place is the shared chat ingestion/normalization boundary before the tray timeline renders assistant text, not a visual-only special case.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • No live Windows tray reproduction was run in this read-only cleanup pass, so the bug is source-reproducible rather than runtime reproduced.
    • The gateway contract comments say chat.history should already arrive normalized, so the fix should target assistant/control-directive payloads without hiding legitimate user-entered text.

    Codex review notes: model internal, reasoning high; reviewed against d08a3e749973.

    Label changes

    Label changes:

    • add impact:other: The concrete user impact is a tray UI rendering leak of an internal directive rather than a transport, auth, data-loss, or crash problem.
    • add issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.
    • add clawsweeper:needs-live-repro: Current issue advisory state selects this label.

    Label justifications:

    • P2: This is a normal-priority tray chat rendering bug with a focused affected path and limited blast radius.
    • impact:other: The concrete user impact is a tray UI rendering leak of an internal directive rather than a transport, auth, data-loss, or crash problem.
    Evidence reviewed

    Acceptance criteria:

    • ./build.ps1
    • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
    • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore

    What I checked:

    • Repository policy: AGENTS.md was present and read fully; its tray UX validation/proof guidance applies to any fix recommendation for this chat UI issue. (AGENTS.md:1, d08a3e749973)
    • Current issue state: GitHub shows this issue open, labeled bug/P2, with no closing pull request references and no substantive discussion beyond the ClawSweeper status comment.
    • Live chat extraction path: OpenClawGatewayClient extracts message text and emits ChatMessageReceived when text is non-empty; there is no NO_REPLY suppression in this path. (src/OpenClaw.Shared/OpenClawGatewayClient.cs:3069, d08a3e749973)
    • Tray assistant render path: OpenClawChatDataProvider drops empty or invalid assistant frames, then applies ChatMessageEvent with the assistant text, so a non-empty NO_REPLY payload would render. (src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1693, d08a3e749973)
    • History contract gap: Models.cs says chat.history should strip silent NO_REPLY entries, but current client parsing only skips empty text and does not enforce that directive. (src/OpenClaw.Shared/Models.cs:1827, d08a3e749973)
    • Related search: Searches for NO_REPLY and chat directive raw text found no other same-repository PR and no canonical issue beyond this issue.

    Likely related people:

    • christineyan4: PR metadata and blame show recent work on live channel message extraction in OpenClawGatewayClient around the current message path. (role: recent adjacent contributor; confidence: medium; commits: 992da748c31b, 8c9acbcfb5d8; files: src/OpenClaw.Shared/OpenClawGatewayClient.cs)
    • RBrid: GitHub PR metadata and git history show ownership of the native FunctionalUI chat experience and inline approval flow touching this chat area. (role: feature-history contributor; confidence: medium; commits: 08cab69a038c, 4e7982bafb86; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs, src/OpenClaw.Shared/OpenClawGatewayClient.cs)
    • bkudiess: Recent chat model picker work touched both the shared gateway client and tray chat data provider shortly before this report. (role: recent adjacent contributor; confidence: medium; commits: d6b1a72f6d23; files: src/OpenClaw.Shared/OpenClawGatewayClient.cs, src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    bug
    P2
    on Jun 28, 2026
  3. clawsweeper commented on Jun 28, 2026

    @clawsweeper

    🦞⚠️
    Automatic implementation stopped before completion.
    Reason: The automatic implementation worker stopped before all deterministic gates completed. Open the workflow run for the exact blocker.
    Worker: https://github.com/openclaw/clawsweeper/actions/runs/28320071409

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

    P2bug

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions