@botlearn-course/daemon 0.0.31-beta.1 → 0.0.31-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -678,7 +678,15 @@ export class AgentServiceSandboxClient {
|
|
|
678
678
|
}
|
|
679
679
|
signal?.throwIfAborted();
|
|
680
680
|
const previousFrame = event.event_id === undefined ? undefined : session.spool.find(item => item.agent_run_id === agentRunId && item.payload.event_id === event.event_id);
|
|
681
|
-
|
|
681
|
+
// Retransmission keeps event identity and the stored reconciliation cursor, but
|
|
682
|
+
// every send must advance the current connection's transport sequence.
|
|
683
|
+
const frame = previousFrame ? {
|
|
684
|
+
...previousFrame,
|
|
685
|
+
sandbox_generation: this.sandboxGeneration,
|
|
686
|
+
connection_epoch: this.connectionEpoch,
|
|
687
|
+
seq: this.nextOutboundSeq(),
|
|
688
|
+
sent_at: new Date().toISOString(),
|
|
689
|
+
} : createSandboxFrame({
|
|
682
690
|
type: "turn.event",
|
|
683
691
|
sandboxId: this.options.sandboxId,
|
|
684
692
|
sandboxGeneration: this.sandboxGeneration,
|