fix(irc): sanitize internal tool-trace lines from outbound text (#97214) · openclaw/openclaw@ddedf13
masatohoshin
·
2026-06-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Irc plugin module implements outbound base behavior. |
2 | 2 | import { sanitizeForPlainText } from "openclaw/plugin-sdk/channel-outbound"; |
| 3 | +import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking"; |
3 | 4 | import { chunkTextForOutbound } from "./channel-api.js"; |
4 | 5 | |
5 | 6 | export const ircOutboundBaseAdapter = { |
6 | 7 | deliveryMode: "direct" as const, |
7 | 8 | chunker: chunkTextForOutbound, |
8 | 9 | chunkerMode: "markdown" as const, |
9 | 10 | textChunkLimit: 350, |
10 | | -sanitizeText: ({ text }: { text: string }) => sanitizeForPlainText(text), |
| 11 | +// IRC's plain-text pass does not remove assistant scaffolding. Run the |
| 12 | +// canonical delivery sanitizer first so internal tool traces are dropped |
| 13 | +// before channel formatting. |
| 14 | +sanitizeText: ({ text }: { text: string }) => |
| 15 | +sanitizeForPlainText(sanitizeAssistantVisibleText(text)), |
11 | 16 | }; |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。