4 Commits

Author SHA1 Message Date
Luis Pater
40c16182b8 feat(auth): support session-affinity-rebind-on never mode
- Add the "never" option for routing.session-affinity-rebind-on to preserve established session bindings across all credential failures and refuse cross-credential failover across primary, fallback-key, and Merkle LCP paths.
- Scope retry rounds and Antigravity credits fallback to the bound credential under "never" mode, returning 503 session_auth_retry on transient unavailability and 429 or upstream errors on quota/auth blocks.
- Add unit and end-to-end regression tests covering selector refusal, retry rounds, empty candidate sets, Antigravity credits fallback, and runtime config reload.

Closes: #7348
2026-11-08 15:38:30 +08:00
Luis Pater
7a687f424c feat(routing): support session-affinity-rebind-on option
Closes: #6537
2026-10-12 13:15:06 +08:00
Luis Pater
31f4cfab3f feat: migrate CLIProxyAPI to version 8 2026-09-27 14:42:26 +08:00
sususu
65fc536e6e fix(auth): preserve session affinity across priorities
Keep a healthy cached session binding even when a higher-priority credential recovers. Continue applying credential priority to cold selection, plugin scheduling, and true failover.

Resolve the across-priority candidate list in a single availability pass and narrow the highest-priority tier from the same cloned auths, so the selection path does not scan or deep-clone candidates twice. Document that an established binding outranks credential priority.

Fixes #4808
2026-08-06 10:29:57 +08:00