Repository navigation
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open: this targets a real Control UI grouped-render leak, but the branch is conflicting, the proof is still test-only, and the patch should be refreshed to use the shared message extractor instead of adding a partial sanitizer path. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main sends streaming and grouped assistant text through renderGroupedMessage, which currently renders normalized text blocks without the shared assistant sanitizer. I did not run a live browser/provider reproduction in this read-only review. Is this the best way to solve the issue? No, not as currently shaped. The maintainable fix should use the existing shared message extractor/sanitizer contract so grouped rendering does not create a second assistant-visible-text path. Security review: Security review cleared: The diff only changes Control UI text rendering and unit tests; it adds no dependency, workflow, secret, permission, package, or code-execution surface. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 010b61746379. |
|
Heads-up on the failing checks:
The actual fix and its 2 new regression tests pass locally: If a maintainer wants the proof override or a different evidence format, let me know. |
renderGroupedMessage reads message.content[].text directly via normalizeMessage. The streaming bubble feeds raw model output through this path, and even non-streaming history messages bypass extractText, so any literal <think>...</think> or <final>...</final> the model emits leaks into the chat bubble HTML even when thinkingDefault is "off". This patch runs the assembled assistant text through stripThinkingTags (internal-scaffolding profile) before it becomes `markdown`. The other roles (user, tool) keep their existing rendering untouched. Adds two regression tests against renderGroupedMessage and renderStreamingGroup confirming both paths now drop those tags. Closes openclaw#77879
f25a282 to
804dcde
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
@Beandon13 thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward. Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive. Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it. |
|
Closing per ClawSweeper review verdict |
Summary
renderGroupedMessagereadsmessage.content[].textdirectly vianormalizeMessage, so the streaming bubble and any non-streaming history message can render raw<think>/<final>scaffolding the model emitted as text.stripThinkingTags(internal-scaffoldingprofile, already used elsewhere in the chat extractor) before it becomesmarkdown. User and tool roles are unchanged.renderStreamingGroupand the non-streamingrenderMessageGrouppath.Closes #77879
Testing
pnpm vitest run ui/src/ui/chat/grouped-render.test.ts(37/37, includes 2 new)pnpm vitest run ui/src/ui/chat(205/205)pnpm vitest run ui/src/ui/views/chat.test.ts(28/28)Real behavior proof
<think>and<final>tags appearing in openclaw-control-ui chat bubbles even whenthinkingDefaultis "off". The two new tests fail onorigin/main(text content includes the tag bodies) and pass after this patch.google/gemini-flash-3was not run; this is a UI-side render fix, and the hosted control-ui smoke is covered by CI.