fix(bridge): eliminate discord empty embed spam by disabling DOM observer proactive pending
- removed PATS in observer-script.ts - step-probe.ts now handles 100% of pending detection with full RPC payload context - DOM observer restricted to trigger-click polling only
This commit is contained in:
@@ -275,12 +275,9 @@ export function generateApprovalObserverScript(_port: number): string {
|
||||
// ONLY positive triggers should initiate a pending request group.
|
||||
// Negative/secondary buttons (Deny, Reject, Dismiss) will be collected as siblings.
|
||||
var PATS=[
|
||||
{re:/^(?:Always\s*)?Run\b/i, type:'terminal_command'},
|
||||
{re:/^(?:Always\s*)?Accept(?: all)?\b/i, type:'diff_review'},
|
||||
{re:/^(?:Always\s*)?Accept\b/i, type:'agent_step'},
|
||||
{re:/^(?:Always\s*)?Allow\b/i, type:'permission'},
|
||||
{re:/^(?:Always\s*)?Approve\b/i, type:'agent_step'},
|
||||
{re:/^Retry\b/i, type:'error_recovery'},
|
||||
// ALL PATS removed to prevent UI-level False Positives and "Empty Body" payloads.
|
||||
// 100% of pending detection is now handled by step-probe.ts which has full RPC context.
|
||||
// The DOM observer remains strictly for 'trigger-click' (executing physical clicks on fallback).
|
||||
];
|
||||
|
||||
// ALL actionable button patterns (for grouping siblings in same container)
|
||||
|
||||
Reference in New Issue
Block a user