fix(observer): v36 Accept all 감지 — span.cursor-pointer 선택자 추가 (v0.5.101)
근본 원인: AG Native에서 Accept all 버튼이 <button>이 아닌 <span> 태그. Observer의 allBtns 선택자가 button만 스캔하여 Accept all 미감지. ACCEPT-SCAN 로그에서 tag=SPAN cls=cursor-pointer 확인. span.cursor-pointer 추가로 diff review 버튼 감지 복구.
This commit is contained in:
22
extension/scratch/test_accept.js
Normal file
22
extension/scratch/test_accept.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// Test: call agentAcceptAllInFile via extension's HTTP bridge trigger-click
|
||||
// This simulates what the approval handler does
|
||||
const http = require('http');
|
||||
|
||||
const PORT = 34332; // from observer setup log
|
||||
|
||||
// Write a trigger-click file to make Observer click "Accept all"
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const bridgePath = path.join(process.env.USERPROFILE, '.gemini', 'antigravity', 'bridge');
|
||||
|
||||
// Check if there's a trigger_click.json
|
||||
const triggerFile = path.join(bridgePath, 'trigger_click.json');
|
||||
console.log('Writing trigger_click.json for accept...');
|
||||
fs.writeFileSync(triggerFile, JSON.stringify({ action: 'approve', type: 'diff_review', ts: Date.now() }), 'utf-8');
|
||||
console.log('Done. Check if Accept all was clicked.');
|
||||
|
||||
// Also check extension log for recent entries
|
||||
const logFile = path.join(bridgePath, 'extension.log');
|
||||
const lines = fs.readFileSync(logFile, 'utf-8').split('\n');
|
||||
const recent = lines.slice(-5);
|
||||
recent.forEach(l => console.log(l.substring(0, 200)));
|
||||
Reference in New Issue
Block a user