fix(extension): pin point CodeLens exclusion filter to prevent native Agent UI freezing (v0.5.22) #task-602

This commit is contained in:
Variet Worker
2026-04-09 22:32:40 +09:00
parent 75762964e3
commit 47c0602427
5 changed files with 22 additions and 14 deletions

View File

@@ -423,8 +423,8 @@ export function generateApprovalObserverScript(_port: number): string {
for(var p=0;p<PATS.length;p++){
if(PATS[p].re.test(txt)){
// STRUCTURAL CONSTRAINT: To prevent freezing on CodeLens 'Run' or 'Accept' false positives within editor files,
// ignore these if found inside the main editor body (.monaco-editor).
if (b.closest('.monaco-editor') && PATS[p].type !== 'diff_review' && PATS[p].type !== 'permission') {
// ignore these if found inside a CodeLens container.
if (b.closest('.codelens-decoration') && PATS[p].type !== 'diff_review' && PATS[p].type !== 'permission') {
continue;
}
// Prevent duplicates if already scanned via panel root