fix(observer): diff_review Accept all 버튼 감지 — offsetParent 체크 완화 (v0.5.80)
This commit is contained in:
4
extension/package-lock.json
generated
4
extension/package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "gravity-bridge",
|
"name": "gravity-bridge",
|
||||||
"version": "0.5.79",
|
"version": "0.5.80",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "gravity-bridge",
|
"name": "gravity-bridge",
|
||||||
"version": "0.5.79",
|
"version": "0.5.80",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cheerio": "^1.2.0",
|
"cheerio": "^1.2.0",
|
||||||
"ws": "^8.19.0"
|
"ws": "^8.19.0"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "gravity-bridge",
|
"name": "gravity-bridge",
|
||||||
"displayName": "Gravity Bridge",
|
"displayName": "Gravity Bridge",
|
||||||
"description": "Discord-based unified approval system for Antigravity AI interactions.",
|
"description": "Discord-based unified approval system for Antigravity AI interactions.",
|
||||||
"version": "0.5.79",
|
"version": "0.5.80",
|
||||||
"publisher": "variet",
|
"publisher": "variet",
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.100.0"
|
"vscode": "^1.100.0"
|
||||||
|
|||||||
@@ -1028,6 +1028,11 @@ export function generateApprovalObserverScript(_port: number): string {
|
|||||||
// v9: Skip group header buttons — not approval buttons
|
// v9: Skip group header buttons — not approval buttons
|
||||||
if (/^Running\\s*\\d+\\s*commands?$/i.test(txt)) continue;
|
if (/^Running\\s*\\d+\\s*commands?$/i.test(txt)) continue;
|
||||||
|
|
||||||
|
// v24: Relaxed visibility check — Accept all/Reject all buttons in AG Native
|
||||||
|
// editor bottom bar may have offsetParent===null (different rendering layer)
|
||||||
|
var isDiffReviewBtn = txt.includes('Accept') || txt === 'Reject all';
|
||||||
|
if(!isDiffReviewBtn && (b.disabled||b.hidden||(!b.offsetParent&&b.style.display!=='fixed')))continue;
|
||||||
|
|
||||||
if(!isActionBtn(txt)) continue;
|
if(!isActionBtn(txt)) continue;
|
||||||
// Skip inline code lens buttons
|
// Skip inline code lens buttons
|
||||||
if (b.closest('.codelens-decoration') && !txt.includes('Accept')) {
|
if (b.closest('.codelens-decoration') && !txt.includes('Accept')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user