1. 07 Mar, 2026 6 commits
  2. 06 Mar, 2026 17 commits
  3. 05 Mar, 2026 15 commits
  4. 04 Mar, 2026 2 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