fix: preserve deployed session fixes

Persist paged Codex history checkpoints and bounded, acknowledged delivery.
Keep usage sources and accounting across deleted or merged sessions.
Include native Goal controls, faster peer/session queries, and release guards.
Track the complete deployed source so isolated builds cannot omit local fixes.

Validation: all typechecks pass. The full suite reports 7,997 passing tests
and 46 existing failures, each reproduced against the prior commit.
This commit is contained in:
2026-10-08 19:51:45 +08:00
parent 4d8a72c146
commit baeeb11356
85 changed files with 3647 additions and 691 deletions
+4 -4
View File
@@ -253,11 +253,11 @@ export interface ServerToClientEvents {
}
export interface ClientToServerEvents {
'codex-history-sync': (data: import('./historySync').CodexHistorySyncRequest, ack: (response: import('./historySync').CodexHistorySyncAck) => void) => void
// createdAt: optional client-provided timestamp (epoch ms) for the entry's
// own origin time (e.g. a Claude transcript entry's timestamp). Currently
// only honored by the hub for agent messages (no localId) — see
// messages.ts addMessage. Absent -> hub falls back to Date.now().
message: (data: { sid: string; message: unknown; localId?: string; createdAt?: number }) => void
// own origin time (e.g. a Claude transcript or Codex history item).
// Absent -> hub falls back to Date.now().
message: (data: { sid: string; message: unknown; localId?: string; createdAt?: number }, ack?: (response: { ok: boolean }) => void) => void
'session-alive': (data: {
sid: string
time: number