mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 17:24:58 +00:00
fix(auto-reply): tighten silent token semantics and prefix streaming
This commit is contained in:
@@ -12,7 +12,7 @@ export function isSilentReplyText(
|
||||
}
|
||||
const escaped = escapeRegExp(token);
|
||||
// Only match when the entire response (trimmed) is the silent token,
|
||||
// optionally surrounded by whitespace/punctuation. This prevents
|
||||
// optionally surrounded by whitespace. This prevents
|
||||
// substantive replies ending with NO_REPLY from being suppressed (#19537).
|
||||
return new RegExp(`^\\s*${escaped}\\s*$`).test(text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user