- [Multi-Agent Root Session Normalization and Key-Level Affinity Scheduling] (Fixes #3789, Thanks to @Ran-Xing):
- Root Session Suffix Normalization: Solves the 100% Prompt Cache miss issue caused by multi-agent frameworks (such as Cindy, AutoGPT, LangGraph) frequently deriving transient sub-session UUIDs during plan steps. Implemented
extract_root_session_idwithinSessionScope::resolveto automatically strip derived suffixes (:step:N,:subtask:...,:agent:...,:talk:...,--step-N,::); the affinity routing key converges to the root session to lock the upstream account and restore sub-second TTFT caching, while the store key preserves the complete sub-session ID for isolated thinking storage. (Fixes #3789, Thanks to @Ran-Xing) - Credential-Level Affinity (AffinityScope::ApiKey): Extended
StickySessionConfigwith an affinity scope toggle, supporting seamless switching betweensession(default) andapi_keymodes to lock all requests under the same API token to a single account with automatic failover on 429 or quota exhaustion; supported headless override viaANTIGRAVITY_SCHEDULING_AFFINITY_SCOPE. (Fixes #3789) - Contextual UI Pill Toggle & 12-Locale Support: Added an intuitive pill toggle in the Scheduling configuration panel within ApiProxy settings, fully localized across all 12 supported languages. (Fixes #3789)
- Root Session Suffix Normalization: Solves the 100% Prompt Cache miss issue caused by multi-agent frameworks (such as Cindy, AutoGPT, LangGraph) frequently deriving transient sub-session UUIDs during plan steps. Implemented
- [Remember Login Credentials in Web/Docker Mode] (Fixes #3791, PR #3792, Thanks to @cubelikeplayDaniel):
- Optional Credential Persistence: Added an optional "Remember login credentials" checkbox to the Web/Docker login dialog, disabled by default to maintain shared device security; persists API Key to
localStorageupon successful authentication, eliminating redundant re-logins on browser restart. (Fixes #3791, PR #3792, Thanks to @cubelikeplayDaniel) - Request Fallback & 401 Listener Lifecycle Fix:
request.tsnow prioritizessessionStoragewith graceful fallback tolocalStorage; resolved an existing lifecycle defect where active sessions returned prematurely and skipped registering the globalabv-unauthorizedlistener. (Fixes #3791, PR #3792, Thanks to @cubelikeplayDaniel)
- Optional Credential Persistence: Added an optional "Remember login credentials" checkbox to the Web/Docker login dialog, disabled by default to maintain shared device security; persists API Key to
- [Stage Timeout Overview and Diagnostics Refinements]:
- Clear Descriptions & Grace Semantics: Enhanced contextual hints and documentation for the 3-stage stream lifecycle timeout state machine, clarifying transition cliff grace windows and sliding idle timeouts.
- [多智能体根会话归一化与凭据级强粘性调度] (Fixes #3789, Thanks to @Ran-Xing):
- 根会话派生后缀自动归一化: 针对 AutoGPT、Cindy 群聊军团等多智能体协同框架在分工接力(Plan Step)中频繁派生瞬态 Session UUID 导致 Prompt Cache 击穿的痛点,在
SessionScope::resolve中新增extract_root_session_id,自动识别并裁剪:step:N、:subtask:...、:agent:...、:talk:...、--step-N等派生后缀;调度粘性键(affinity_key)自动归拢至根会话以锁定同一上游账号,彻底消除 Prompt Cache 击穿并恢复秒级首字响应;诊断与思维库存储键(store_key)依然保留完整子会话 ID,保障子任务上下文隔离。(Fixes #3789, Thanks to @Ran-Xing) - 凭据级强粘性模式 (AffinityScope::ApiKey): 在
StickySessionConfig中扩展粘性路由绑定维度,支持在会话级(session,默认)与凭据级(api_key)之间热切换,允许将同一 API Key 来源的所有流量锁定在单一主账号上,并在触发 429 或配额归零时自动平滑 Failover;支持环境变量ANTIGRAVITY_SCHEDULING_AFFINITY_SCOPE无头覆盖。(Fixes #3789) - UI 胶囊切换与 12 语言全量本地化: 在 API 代理调度设置面板中新增粘性绑定维度胶囊切换控件,并为全部 12 种系统语言同步补齐多语言文案。(Fixes #3789)
- 根会话派生后缀自动归一化: 针对 AutoGPT、Cindy 群聊军团等多智能体协同框架在分工接力(Plan Step)中频繁派生瞬态 Session UUID 导致 Prompt Cache 击穿的痛点,在
- [Web/Docker 模式记住登录凭据选项] (Fixes #3791, PR #3792, Thanks to @cubelikeplayDaniel):
- 可选凭据持久化: 在 Web/Docker 模式鉴权弹窗中新增“记住登录凭据”勾选框,默认未勾选保持公共设备安全基线;认证成功后按需将 API Key 持久化至
localStorage,解决关闭浏览器标签页后反复输入密码的问题。(Fixes #3791, PR #3792, Thanks to @cubelikeplayDaniel) - 请求层平滑回退与 401 监听生命周期修复:
request.ts请求附带凭据优先读取sessionStorage并回退localStorage;修复已登录状态下因提前返回导致跳过注册abv-unauthorized全局事件监听器的既有生命周期缺陷。(Fixes #3791, PR #3792, Thanks to @cubelikeplayDaniel)
- 可选凭据持久化: 在 Web/Docker 模式鉴权弹窗中新增“记住登录凭据”勾选框,默认未勾选保持公共设备安全基线;认证成功后按需将 API Key 持久化至
- [超时链路三阶段总览与说明文案优化]:
- 文案精炼与机制明确: 优化出站流生命周期三阶段梯度超时状态机说明文案,明确过渡断崖与稳态推流滑动超时保底机制。
What's Changed
- feat(web,auth): 支持 Web/Docker 模式记住登录凭据选项 (Fixes #3791) by @cubelikeplayDaniel in #3792
Full Changelog: v5.0.2-beta.1...v5.0.2-beta.2