fix: harden docs i18n prompt echoes

This commit is contained in:
Peter Steinberger
2026-04-28 09:11:28 +01:00
parent 725d557de6
commit bce6c10290
7 changed files with 76 additions and 4 deletions

View File

@@ -64,6 +64,10 @@ const POISON_TEXT_PATTERNS = [
pattern: /\b[A-Za-z_\u3400-\u9fff][\w\u3400-\u9fff-]*_input=\{/u,
message: "Leaked tool-call input payload.",
},
{
pattern: /<\/?openclaw_docs_i18n_input>/iu,
message: "Leaked docs i18n prompt wrapper.",
},
{
pattern: /\/home\/runner\/work\//u,
message: "Leaked GitHub Actions workspace path.",