fix(extension): v0.3.16 — diff_review duplicate approval filter + IDLE notification + !auto echo removal
This commit is contained in:
@@ -196,10 +196,6 @@ function processCommandFile(filePath: string) {
|
||||
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)
|
||||
recentDiscordSentTexts.set(text.trim(), Date.now());
|
||||
@@ -748,7 +744,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|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' });
|
||||
@@ -2399,6 +2395,8 @@ function setupMonitor() {
|
||||
} catch (re: any) {
|
||||
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 ──
|
||||
|
||||
Reference in New Issue
Block a user