- 24 Feb, 2026 24 commits
-
-
erio authored
- Add claude-sonnet-4-6 to default Antigravity model mapping - Add antigravity_extra_retries default value in config - Add cache-dependency-path to CI setup-go for faster builds - Simplify vitest config to avoid vite plugin compatibility issues
-
erio authored
Add Gemini model presets to BulkEditAccountModal for bulk model mapping. Fix AccountStatusIndicator model rate limit grid layout using proper grid container.
-
erio authored
Add comprehensive tests for warmup request interception behavior covering Antigravity accounts with various credential configurations.
-
erio authored
Remove the special case that bypassed model-supported checks for Gemini API Key accounts, allowing model_mapping to filter requests properly. Add tests for multiplatform model filtering behavior.
-
erio authored
- Use mapped model (billingModel) instead of original request model for billing - Use resolveFinalAntigravityModelKey for 429 rate limit model key, ensuring rate limit records match the actual upstream model - Add regression tests for both fixes
-
erio authored
- Extract duplicated failover logic from gateway_handler.go (3 places) and gemini_v1beta_handler.go into shared failover_loop.go - Introduce FailoverState with HandleFailoverError and HandleSelectionExhausted - Move helper functions (needForceCacheBilling, sleepWithContext) into failover_loop.go - Add comprehensive unit tests (32+ test cases) - Delete redundant gateway_handler_single_account_retry_test.go
-
erio authored
Add a dedicated CheckMixedChannel endpoint that allows the frontend to pre-validate mixed channel risk before submitting create/update requests. This improves UX by showing warnings earlier in the flow instead of only after form submission. Backend changes: - Add CheckMixedChannelRequest struct and CheckMixedChannel handler - Register POST /check-mixed-channel route - Expose CheckMixedChannelRisk as public method on AdminService - Simplify Create/Update 409 responses (remove details/require_confirmation) - Add comprehensive handler tests and stub methods Frontend changes: - Add checkMixedChannelRisk API function and TypeScript types - Refactor CreateAccountModal to precheck before step transition and submission - Refactor EditAccountModal to precheck before update submission - Replace pendingPayload pattern with action-based dialog flow
-
erio authored
Extract applyInterceptWarmup utility to unify all credential building call sites: - Fix upstream account creation missing intercept_warmup_requests write - Fix apikey edit mode missing else-branch to clear the setting - Add backend unit test for IsInterceptWarmupEnabled - Add frontend unit test for credentialsBuilder
-
erio authored
Before this change, when a client disconnected mid-request, the error message was "Upstream request failed after retries", which is misleading and pollutes error logs. Now we check context.Err() to return a more accurate "Client disconnected" message for both Claude and Gemini forward paths.
-
erio authored
The usage progress bar only matched claude-sonnet-4-5 and claude-opus-4-5-thinking. After upgrading to 4.6, the backend returns claude-sonnet-4-6/claude-opus-4-6-thinking which didn't match, causing the Claude usage bar to not display. - Add claude-sonnet-4-6 and claude-opus-4-6-thinking to the match list - Rename label from "C4.5" to "Claude" for future-proofing
-
shaw authored
skipIfExternalServiceUnavailable 检查了 "timeout" 但 Go 的 context.DeadlineExceeded 错误信息是 "context deadline exceeded", 不包含 "timeout" 子串,导致外部服务不可达时测试直接失败而非跳过。
-
shaw authored
-
shaw authored
- oauth.go: GetUserAgent() 缺少闭合大括号导致语法错误 - client_test.go/oauth_test.go: UserAgent 变量已重构为 GetUserAgent(),更新测试引用 - model_rate_limit_test.go: gemini-3-pro-preview 映射目标已更新为 gemini-3.1-pro-high,同步测试
-
Wesley Liddick authored
feat: Antigravity 将 gemini-3-pro 路由升级到 gemini-3.1-pro
-
Wesley Liddick authored
feat: 让 Antigravity User-Agent 版本可通过环境变量配置
-
Wesley Liddick authored
-
Wesley Liddick authored
feat: add gemini-3.1-pro-preview to model lists
-
shaw authored
idempotency_key_hash 和 request_fingerprint 列为 VARCHAR(64), 而 uniqueTestValue 生成的字符串含完整测试名可能超过 64 字符。 新增 hashedTestValue 辅助函数对测试值做 SHA-256 哈希, 与生产逻辑一致且严格符合列宽限制。
-
shaw authored
idempotency_repo_integration_test.go 中的 ptrTime 与 scheduler_cache.go 中的声明冲突,导致 repository 包测试构建失败。
-
shaw authored
-
shaw authored
- logger: sinkCore 包装 tee core 时绕过了子 core 的 Check 级别过滤, 导致每条日志同时写入 stdout 和 stderr,表现为启动日志重复显示。 修复为正确委托 Check 给内部 tee core,sinkCore.Write 仅负责 sink 转发。 - migration 054: 移除冗余的遗留列回填逻辑,migration 009 已完成数据迁移, 直接删除遗留列即可。
-
Wesley Liddick authored
feat : 大幅度的性能优化 和 新增了很多功能
-
Wesley Liddick authored
fix: 更新余额显示样式以支持深色模式
-
yangjianbo authored
-
- 23 Feb, 2026 7 commits
-
-
cagedbird043 authored
-
Leon-mac authored
-
cagedbird043 authored
-
yangjianbo authored
- 将媒体写入和删除切换为 os.Root 沙箱 API - 移除旧的路径拼接校验辅助函数并收敛删除逻辑 - 调整并新增相关单元测试覆盖删除行为 Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
yangjianbo authored
- 新增安全路径拼接校验,确保目标文件仍在下载目录内 - 清理失败下载文件时复用安全校验,避免不安全删除路径 - 增加扩展名白名单归一化与相关单元测试 Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-
yangjianbo authored
-
yangjianbo authored
-
- 22 Feb, 2026 9 commits
-
-
yangjianbo authored
-
yangjianbo authored
-
yangjianbo authored
-
yangjianbo authored
- 后端新增绝对重置时间字段计算(codex_5h_reset_at/codex_7d_reset_at) - 前端统一窗口解析逻辑:绝对时间优先,updated_at+seconds 回退,过期自动归零 - 新增后端与前端单元测试,覆盖关键边界与异常场景
-
yangjianbo authored
- 将 jwt.access_token_expire_minutes 默认值改为 0,未显式配置时回退 expire_hour - 调整配置校验为允许 0,仅拒绝负数并补充优先级注释 - 新增配置与认证服务单元测试,覆盖分钟优先与小时回退场景 - 更新示例配置文档,明确分钟/小时优先级与默认行为
-
yangjianbo authored
- ClearRateLimit 增加清理 temp_unschedulable 与缓存\n- 新增 ClearRateLimit 相关单元测试覆盖成功与失败分支
-
yangjianbo authored
-
yangjianbo authored
-
yangjianbo authored
- 在 README.md 增加 Sora 暂不可用状态说明 - 在 README_CN.md 增加对应中文说明并标注恢复后可选 - 明确 gateway.sora_* 配置当前仅为预留项 Co-Authored-By:Claude Opus 4.6 <noreply@anthropic.com>
-