- [Official Hub User-Agent Egress Upgrade, Multi-Locale Diagnostics, and Settings Save Fix] (Fixes #3797, Ref #3750, PR #3800, Thanks to @cubelikeplayDaniel):
- Official Hub Egress Fingerprint Modernization: Upgraded the default User-Agent example in ApiProxy settings to the modern Hub format
antigravity/hub/2.28.0 (aidev_client; os_type=windows; arch=amd64; cl=1008300195), eliminating the risk of losing official Hub signatures that trigger upstream 404 and 503 circuit-breaker quarantines; added contextual warning banners with dynamic interpolation of the latest detected Hub version. (Fixes #3797, Ref #3750, PR #3800, Thanks to @cubelikeplayDaniel) - Settings Save Persistence & Lifecycle Fix: Fixed a lifecycle issue where saving proxy settings unexpectedly toggled off or reset User-Agent overrides during state reload, and removed blocking confirmation dialogs during save. (PR #3800, Thanks to @cubelikeplayDaniel)
- Full 12-Locale Gateway Error Diagnostics: Built comprehensive multi-language diagnostic dictionaries across all 12 supported locales, accurately identifying missing Hub signatures, outdated fingerprint rejections, account-pool circuit-breaker locks, and upstream network drops with structured
gateway_errordetails and actionable suggestions. (PR #3800, Thanks to @cubelikeplayDaniel) - Log Details Panel Full Localization: Completed multi-language translations for 3-column diff, Postman view switching, soft-wrap toggles, copy actions, and header/query tables across all 12 supported languages. (PR #3800, Thanks to @cubelikeplayDaniel)
- Official Hub Egress Fingerprint Modernization: Upgraded the default User-Agent example in ApiProxy settings to the modern Hub format
- [Official Hub Fingerprint and Update Detection Parity in Web/Docker Mode] (Ref #3797):
- Web Mode Hub Fingerprint & Update Endpoints: Implemented backend Axum web endpoints
/api/system/hub/fingerprint,/api/system/hub/check-update,/api/system/hub/detect-fingerprint, and/api/system/timeouts/effective-first-byte, resolving missing route errors in headless/Docker deployments; - Frontend Command Mapping Parity: Aligned route mappings in
src/utils/request.ts(COMMAND_MAPPING), ensuring Web UI users receive official Hub update notifications upon launch and can actively inspect and detect Hub fingerprints in the Settings panel. (Ref #3797)
- Web Mode Hub Fingerprint & Update Endpoints: Implemented backend Axum web endpoints
- [Batch Import Account HTTP 422 Fix in Web/Docker Mode] (Fixes #3801, Thanks to @dandelion-promise520):
- Dual Payload Shape Adaptation: Introduced
#[serde(untagged)]onBatchImportPayloadto seamlessly accept both the wrapped object{ "entries": [...] }emitted by frontendinvoke('batch_import_accounts', { entries })in Web mode and the bare JSON array[...]from direct API calls, eliminating HTTP 422 deserialization failures when importing accounts via the Web UI with automated unit test coverage. (Fixes #3801, Thanks to @dandelion-promise520)
- Dual Payload Shape Adaptation: Introduced
- [User-Agent 官方 Hub 指纹升级、多语种门禁诊断与设置保存修复] (Fixes #3797, Ref #3750, PR #3800, Thanks to @cubelikeplayDaniel):
- 现代官方 Hub 指纹升级: 将设置页默认 User-Agent 示例升级为标准 Hub 格式
antigravity/hub/2.28.0 (aidev_client; os_type=windows; arch=amd64; cl=1008300195),彻底消除复制旧版示例导致丢失 Hub 签名、引发上游 404 与全池 503 保护性熔断的风险;开启覆盖开关时提供高亮警示并动态注入应用探测到的最新 Hub 版本。(Fixes #3797, Ref #3750, PR #3800, Thanks to @cubelikeplayDaniel) - 配置保存可靠性修复: 修复保存配置时因状态重载导致 User-Agent 覆盖开关意外关闭或重置清空的生命周期问题,并移除保存时的阻断弹窗。(PR #3800, Thanks to @cubelikeplayDaniel)
- 全量 12 语种网关诊断体系: 构建覆盖全部 12 种系统语言的网关错误诊断字典,基于返回报文精准识别缺少 Hub 签名、指纹门禁拦截、全池账号挂起熔断以及上游连接超时中断,提供结构化
gateway_error与排查指引。(PR #3800, Thanks to @cubelikeplayDaniel) - 日志详情面板全量国际化: 补全三栏对比、Postman 风格视图切换、单行/折行切换、复制选项及请求头参数在 12 种语言下的翻译词条。(PR #3800, Thanks to @cubelikeplayDaniel)
- 现代官方 Hub 指纹升级: 将设置页默认 User-Agent 示例升级为标准 Hub 格式
- [Web/Docker 模式官方 Hub 指纹探测与更新感知对齐] (Ref #3797):
- Web 端 Hub 指纹与更新检测路由补齐: 在后端 Axum 路由中补齐
/api/system/hub/fingerprint、/api/system/hub/check-update、/api/system/hub/detect-fingerprint与/api/system/timeouts/effective-first-byte端点实现,解决 Web 模式无法读取指纹与首包延迟的缺陷; - 前端请求层映射对齐: 规范修正
src/utils/request.ts的COMMAND_MAPPING字典,使 Web 端在启动时能够及时收到官方 Hub 新版本提示 Toast,并在设置面板中完整支持出站指纹查看与主动探测。(Ref #3797)
- Web 端 Hub 指纹与更新检测路由补齐: 在后端 Axum 路由中补齐
- [Web/Docker 模式批量导入账号 HTTP 422 修复] (Fixes #3801, Thanks to @dandelion-promise520):
- 双重请求体形态自适应: 后端
BatchImportPayload引入#[serde(untagged)]弹性适配,同时兼容前端invoke('batch_import_accounts', { entries })发送的对象包裹形态{"entries": [...]}与原生 API 的裸数组形态[...],彻底解决 Web/Docker 远程模式下导入账号 JSON 文件反序列化失败报 422 的缺陷,并配套自动化单元测试覆盖。(Fixes #3801, Thanks to @dandelion-promise520)
- 双重请求体形态自适应: 后端
What's Changed
- feat(proxy,ui): 升级 User-Agent 官方 Hub 指纹、强化多语种门禁诊断与修复设置保存 (Fixes #3797, Ref #3750) by @cubelikeplayDaniel in #3800
Full Changelog: v5.0.2-beta.3...v5.0.2-beta.4