fix(hibernation): type restored reconciliation timing

This commit is contained in:
Brennan Benson
2026-07-28 16:56:46 -07:00
parent a37dce3954
commit f578f55b47
+3 -2
View File
@@ -1990,12 +1990,13 @@ export class AgentHookServer {
const reconciledAt = stateChanged
? Math.max(Date.now(), enriched.receivedAt + 1)
: enriched.receivedAt
this.state.lastStatusByPaneKey.set(paneKey, {
const reconciled: EnrichedAgentHookEventPayload = {
...enriched,
receivedAt: reconciledAt,
stateStartedAt: stateChanged ? reconciledAt : enriched.stateStartedAt,
payload: { ...enriched.payload, state, subagents }
})
}
this.state.lastStatusByPaneKey.set(paneKey, reconciled)
}
if (changedPanes > 0) {
this.scheduleStatusPersist()