fix(extension): v0.3.16 — diff_review duplicate approval filter + IDLE notification + !auto echo removal

This commit is contained in:
Variet Worker
2026-03-16 19:13:52 +09:00
parent 0035394b9c
commit 412c212c6e
7 changed files with 23 additions and 14 deletions

View File

@@ -231,10 +231,6 @@ function processCommandFile(filePath) {
autoApproveEnabled = !autoApproveEnabled;
}
logToFile(`[AUTO] auto-approve toggled → ${autoApproveEnabled}`);
// Confirm back to Discord
const emoji = autoApproveEnabled ? '🟢' : '🔴';
const mode = autoApproveEnabled ? '자동 승인 활성' : '수동 승인 모드';
writeChatSnapshot(`${emoji} **Extension 확인**: ${mode} (project=${projectName})`);
}
else if (text) {
// Send message to Antigravity — use VS Code command (most reliable)
@@ -751,7 +747,7 @@ function startObserverHttpBridge() {
const data = JSON.parse(body);
// ── 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|Deny|Allow Once|Allow This Conversation|Dismiss|Decline)$/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|Accept|Reject|Accept all|Reject all)$/i;
if (FALSE_POSITIVE_RE.test(cmd)) {
logToFile(`[HTTP] filtered false positive: "${cmd}"`);
res.writeHead(200, { 'Content-Type': 'application/json' });
@@ -2431,6 +2427,8 @@ function setupMonitor() {
catch (re) {
logToFile(`[RESPONSE-CAPTURE] error: ${re.message.substring(0, 100)}`);
}
// Send explicit IDLE notification so user knows the step is done
writeChatSnapshot(`✅ **Step ${currentCount} 작업 종료**`);
}
// ── Diff review detection: if session just went IDLE and files were modified ──
if (wasRunning && !isRunning && pendingModifiedFiles.length > 0) {