fix(ext+hub): v0.5.2 Idle→Resume 신호 소실 3중 버그 수정 — auth_fail 재연결 + pending_owners 보존 + step-probe 리셋
This commit is contained in:
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user