fix(extension): Retry auto-approve 흐름 복구 + Observer 형제 탐색 + thinking 필터링 (v0.5.79)
- WS response 파일에 _from_ws 마커 추가하여 processResponseFile 삭제 방지 - extractContextFromNearby에 sibling 탐색 추가 (AG Native DOM 구조 대응) - thinking 블록 (max-h-[200px]) 필터링으로 내부 사고 릴레이 차단 - DOM 탐색 depth 5→10 확대 + pre.font-mono 우선 탐색 - 사용자 메시지 셀렉터 (.select-text.rounded-lg) 추가
This commit is contained in:
@@ -397,6 +397,23 @@ async function activate(context) {
|
||||
return;
|
||||
}
|
||||
// Normal approval — tryApprovalStrategies
|
||||
// v22: ALSO write response file so Observer's pollResponseGroup can click
|
||||
// the correct button (with exact button_index). Without this, only the
|
||||
// imprecise pollTriggerClick fallback was used for WS-path responses.
|
||||
const responseDir = path.join(bridgePath, 'response');
|
||||
if (!fs.existsSync(responseDir)) {
|
||||
fs.mkdirSync(responseDir, { recursive: true });
|
||||
}
|
||||
const respPayload = {
|
||||
request_id: data.request_id,
|
||||
approved,
|
||||
button_index: data.button_index ?? 0,
|
||||
step_type: stepType,
|
||||
project_name: projectName,
|
||||
_from_ws: true,
|
||||
};
|
||||
fs.writeFileSync(path.join(responseDir, `${data.request_id}.json`), JSON.stringify(respPayload), 'utf-8');
|
||||
logToFile(`[WS-RESPONSE] Response file written for pollResponseGroup: ${data.request_id?.substring(0, 12)}`);
|
||||
const approvalCtx = (0, step_probe_1.getApprovalContext)();
|
||||
logToFile(`[WS-RESPONSE] Triggering approval: approved=${approved} session=${approvalCtx.sessionId.substring(0, 8)} stepType=${stepType} stepIndex=${approvalCtx.stepIndex}`);
|
||||
(0, step_probe_1.tryApprovalStrategies)(approved, approvalCtx.sessionId, stepType, approvalCtx.stepIndex)
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user