fix(bridge): auto-approve crash — DOM observer Deny filter + bot reject-word guard + AGENT rule

This commit is contained in:
2026-03-15 18:49:58 +09:00
parent 6739f8f30c
commit 5e5f515db4
5 changed files with 35 additions and 5 deletions

View File

@@ -739,7 +739,7 @@ function startObserverHttpBridge(): Promise<number> {
// ── Server-side false positive filter ──
const cmd = (data.command || '').trim();
const FALSE_POSITIVE_RE = /^(Proceed|Continue|Open|Close|OK|Yes|No|Save|Undo|Redo|Back|Next|More|Less|Got it)$/i;
const FALSE_POSITIVE_RE = /^(Proceed|Continue|Open|Close|OK|Yes|No|Save|Undo|Redo|Back|Next|More|Less|Got it|Deny|Allow Once|Allow This Conversation|Dismiss|Decline)$/i;
if (FALSE_POSITIVE_RE.test(cmd)) {
logToFile(`[HTTP] filtered false positive: "${cmd}"`);
res.writeHead(200, { 'Content-Type': 'application/json' });