fix: init lastUserInputStepIdx + lastResponseCaptureStep on session change (prevents stale replay)
This commit is contained in:
@@ -1510,6 +1510,8 @@ function setupMonitor() {
|
||||
lastKnownStepCount = currentCount;
|
||||
lastNotifyStepIndex = bestSession.latestNotifyUserStep?.stepIndex ?? -1;
|
||||
lastTaskStepIndex = bestSession.latestTaskBoundaryStep?.stepIndex ?? -1;
|
||||
lastUserInputStepIdx = bestSession.lastUserInputStepIndex ?? -1;
|
||||
lastResponseCaptureStep = currentCount; // don't re-relay old responses
|
||||
lastPendingStepIndex = -1;
|
||||
stallProbed = false;
|
||||
// Don't register here — registration happens lazily in writeChatSnapshot/writePendingApproval
|
||||
|
||||
Reference in New Issue
Block a user