mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-26 05:27:06 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user