fix(observer): diff_review Accept all 버튼 감지 — offsetParent 체크 완화 (v0.5.80)
This commit is contained in:
@@ -1028,6 +1028,11 @@ export function generateApprovalObserverScript(_port: number): string {
|
||||
// v9: Skip group header buttons — not approval buttons
|
||||
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;
|
||||
// Skip inline code lens buttons
|
||||
if (b.closest('.codelens-decoration') && !txt.includes('Accept')) {
|
||||
|
||||
Reference in New Issue
Block a user