fix(ext+hub): v0.5.2 Idle→Resume 신호 소실 3중 버그 수정 — auth_fail 재연결 + pending_owners 보존 + step-probe 리셋

This commit is contained in:
Variet Worker
2026-03-21 10:51:02 +09:00
parent 94cbda6f3d
commit 5aad82c727
9 changed files with 59 additions and 15 deletions

View File

@@ -85,6 +85,19 @@ export function resetPendingState(): void {
ctx.sawRunningAfterPending = false;
}
/**
* Reset step-probe state after WS reconnection.
* Without this, stallProbed=true + lastPendingStepIndex=N permanently block
* re-detection of WAITING steps whose pending was lost during disconnect.
*/
export function resetPendingStateForReconnect(): void {
ctx.lastPendingStepIndex = -1;
ctx.stallProbed = false;
ctx.sawRunningAfterPending = false;
recentPendingSteps.clear();
ctx.logToFile('[STEP-PROBE] Reset pending state for WS reconnect');
}
// handleDiffReviewResponse → moved to ./approval-handler.ts
/**