Files
openclaw/src/auto-reply
zerone0x 03bec49299 fix: sanitize tool call text in sessions-helpers extractAssistantText
Adds sanitization to extractAssistantText in sessions-helpers.ts to
prevent tool call text from leaking to users. Previously, messages
retrieved from chat history via sessions-helpers.ts could expose:

- Minimax XML tool calls (<invoke>...</invoke>)
- Downgraded tool call markers ([Tool Call: name (ID: ...)])
- Thinking tags (<think>...</think>)

This fix:
- Exports the stripping functions from pi-embedded-utils.ts
- Adds a new sanitizeTextContent helper in sessions-helpers.ts
- Updates extractAssistantText to sanitize before returning
- Updates extractMessageText in commands-subagents.ts to sanitize

Fixes #1269

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-23 07:03:26 +00:00
..
2026-01-14 15:02:19 +00:00
2026-01-15 17:08:31 +00:00
2026-01-22 00:29:27 +00:00
2026-01-18 06:12:54 +00:00
2026-01-22 05:41:11 +00:00
2026-01-23 05:47:09 +00:00
2026-01-22 05:41:11 +00:00
2026-01-23 01:00:24 +00:00