feat(sse): generalize session affinity TTL to all providers (#7274) (#7650)

Validated in local merge-train @ 8f27177d1 (full parity suite green: typecheck+file-size+complexity+cognitive+changelog+unit shards 1&2+vitest)
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-07-17 22:09:44 -03:00
committed by GitHub
parent 8bf2e6929f
commit 735e2d0783
10 changed files with 373 additions and 26 deletions

View File

@@ -177,6 +177,11 @@ export const updateSettingsSchema = z.object({
supportedModels: z.array(z.string().max(200)).max(200).optional(),
})
.optional(),
// #7274: renamed from codexSessionAffinityTtlMs — applies to any provider now.
// The old key is still accepted (read-only legacy alias) so pre-migration
// clients / cached UI bundles that still PATCH the old field name don't 400;
// `resolveSessionAffinityTtlMs` prefers the new key when both are present.
sessionAffinityTtlMs: z.number().int().min(0).max(86_400_000).optional(),
codexSessionAffinityTtlMs: z.number().int().min(0).max(86_400_000).optional(),
// #6977: opt-in per-connection Codex quota auto-ping. `connections` maps a
// provider_connections id -> enabled; default is an empty map (off for everyone)