agent-relay-codex 0.6.0 → 0.6.1
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.
package/live-sidecar.ts
CHANGED
|
@@ -198,12 +198,12 @@ class CodexLiveSidecar {
|
|
|
198
198
|
});
|
|
199
199
|
this.agentId = registration.agentId;
|
|
200
200
|
this.agentEpoch = registration.session?.epoch ?? 0;
|
|
201
|
-
this.lastSeenMessageId = await this.relay.getCursor();
|
|
201
|
+
this.lastSeenMessageId = this.agentEpoch > 1 ? 0 : await this.relay.getCursor();
|
|
202
202
|
this.lastHeartbeatAt = 0;
|
|
203
203
|
this.hasSuccessfulPoll = false;
|
|
204
204
|
this.log(`registered agent ${this.agentId}`);
|
|
205
205
|
this.log(`using thread ${this.threadId}`);
|
|
206
|
-
this.log(`bootstrapped relay cursor ${this.lastSeenMessageId}`);
|
|
206
|
+
this.log(`bootstrapped relay cursor ${this.lastSeenMessageId}${this.agentEpoch > 1 ? " (resuming unread backlog)" : ""}`);
|
|
207
207
|
this.writeState();
|
|
208
208
|
await this.refreshRelayStatus();
|
|
209
209
|
}
|
package/package.json
CHANGED