fix(observer): matchedType 대소문자 무시 — Always run이 permission으로 잘못 분류되는 문제 수정 (v0.5.88)

This commit is contained in:
Variet Worker
2026-04-19 08:01:47 +09:00
parent 7f33a20e43
commit db805c6fde
3 changed files with 5 additions and 4 deletions

View File

@@ -1051,7 +1051,8 @@ export function generateApprovalObserverScript(_port: number): string {
continue;
}
var matchedType = txt.includes('Accept') ? 'diff_review' : (txt === 'Retry' ? 'retry' : (txt.includes('Run') || txt.includes('Allow') ? 'command' : 'permission'));
var txtLow = txt.toLowerCase();
var matchedType = txt.includes('Accept') ? 'diff_review' : (txt === 'Retry' ? 'retry' : (txtLow.includes('run') || txtLow.includes('allow') ? 'command' : 'permission'));
// v7: Use step-index for more unique group key
var stepContainer = getStepContainer(b);