1. 07 Mar, 2026 5 commits
  2. 06 Mar, 2026 17 commits
  3. 05 Mar, 2026 15 commits
  4. 04 Mar, 2026 3 commits
    • litianc's avatar
      fix: extend RewriteUserID regex to match user_id containing account_uuid · 8e1bcf53
      litianc authored
      
      
      The existing regex only matched the old format where account_uuid is
      empty (account__session_). Real Claude Code clients and newer sub2api
      generated user_ids use account_{uuid}_session_ which was silently
      skipped, causing the original metadata.user_id to leak to upstream
      when User-Agent is rewritten by an intermediate gateway.
      
      Closes #766
      Co-Authored-By: default avatarClaude Opus 4.6 <noreply@anthropic.com>
      8e1bcf53
    • kyx236's avatar
      feat: 二次 401 直接升级为错误状态,添加 DB 回退确保生效 · 6aa8cbbf
      kyx236 authored
      账号首次 401 仅临时不可调度,给予 token 刷新窗口;若恢复后再次 401
      说明凭证确实失效,直接升级为错误状态以避免反复无效调度。
      
      - 缓存中 reason 为空时从 DB 回退读取,防止升级判断失效
      - ClearError 同时清除临时不可调度状态,管理员恢复后重新给予一次机会
      - 管理后台账号列表添加"临时不可调度"状态筛选
      - 补充 DB 回退场景单元测试
      6aa8cbbf
    • shaw's avatar
      refactor: 消除重复的 normalizeAccountIDList,补充 PR#754 新增组件的单元测试 · 0819c8a5
      shaw authored
      - 删除 account_today_stats_cache.go 中重复的 normalizeAccountIDList,统一使用 id_list_utils.go 的 normalizeInt64IDList
      - 新增 snapshot_cache_test.go:覆盖 snapshotCache、buildETagFromAny、parseBoolQueryWithDefault
      - 新增 id_list_utils_test.go:覆盖 normalizeInt64IDList、buildAccountTodayStatsBatchCacheKey
      - 新增 ops_query_mode_test.go:覆盖 shouldFallbackOpsPreagg、cloneOpsFilterWithMode
      0819c8a5