Repository navigation
Commit 2bedc60
Friday
fix(auto-reply): suppress silent tokens with trailing punctuation or quotes
The silent-reply matcher (isSilentReplyText) only accepted a token-only
reply matching /^\s*NO_REPLY(?:\s+NO_REPLY)*\s*$/. When a model emitted a
near-miss such as NO_REPLY., NO_REPLY!, or "NO_REPLY", the strict match
failed and the literal token leaked to the user across every suppression
site (cron announce, channel sends, subagent announce, etc.).
Widen the exact matcher to tolerate optional wrapping quotes and trailing
terminal punctuation (. ! ? …) around an otherwise token-only reply, while
still rejecting substantive replies that merely end with the token
(regression guard for #19537, which has word content before the token).
Add unit coverage for the trailing-punctuation and quoted-token cases.1 parent 6aa8337 commit 2bedc60
2 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
99 | 114 | | |
100 | 115 | | |
101 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
30 | 40 | | |
31 | 41 | | |
32 | 42 | | |
| |||
0 commit comments