fix(auto-reply): tighten silent token semantics and prefix streaming

This commit is contained in:
Ayaan Zaidi
2026-02-26 15:51:52 +05:30
committed by Ayaan Zaidi
parent 2f2110a32c
commit e64d72299e
7 changed files with 56 additions and 14 deletions

View File

@@ -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);
}