Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 6:06 PM ET / 22:06 UTC. Summary PR surface: Source +3, Tests +42. Total +45 across 2 files. Reproducibility: yes. Current main accepts raw streamed Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Next step before merge
Security Review detailsBest possible solution: Merge the narrow payload-boundary sanitizer fix after normal exact-head gates, keeping the shared assistant visible-text sanitizer as the single cleanup path. Do we have a high-confidence way to reproduce the issue? Yes. Current main accepts raw streamed Is this the best way to solve the issue? Yes. Reusing the existing stream-visible sanitizer at the embedded payload boundary is narrower and more maintainable than adding provider- or channel-specific filtering. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e80e8a2b6730. Label changesLabel justifications:
Evidence reviewedPR surface: Source +3, Tests +42. Total +45 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
fd81502 to
646d4ff
Compare
|
Land-ready evidence:
|
|
Merged via squash.
|
* fix: sanitize streamed assistant payload text * test(agents): cover streamed reply sanitization --------- Co-authored-by: Yash Inani <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>


What Problem This Solves
DeepInfra MiniMax can emit provider-hidden reasoning markers such as
</mm:think>as ordinary assistant text. Streamed assistant text then reaches embedded-run payload construction without the canonical visible-text sanitizer, so cron summaries or channel reply payloads can expose those markers to users.Why This Change Was Made
OpenClaw already has a canonical assistant visible-text sanitizer that strips reasoning tags, tool scaffolding, and internal markers. This change applies that sanitizer to streamed
assistantTextsbefore they are selected for embedded-run reply payloads, so the payload path matches the existing final-assistant extraction path.User Impact
Users should no longer see MiniMax-style
</mm:think>markers in cron output, Teams/Slack replies, or other embedded-run payload replies when a provider leaks those markers as plain text. Silent replies and empty sanitized text remain suppressed.Evidence
</mm:think>.node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run/payloads.test.ts42 passed