Skip to content

fix(accounts): recover paid pool on manual quota refresh#551

Open
hanaukyo47 wants to merge 1 commit into
chenyme:mainfrom
hanaukyo47:fix/super-pool-refresh-recovery
Open

fix(accounts): recover paid pool on manual quota refresh#551
hanaukyo47 wants to merge 1 commit into
chenyme:mainfrom
hanaukyo47:fix/super-pool-refresh-recovery

Conversation

@hanaukyo47
Copy link
Copy Markdown

Summary

  • probe all quota modes during import and manual/admin refresh so paid accounts misclassified as basic can recover
  • infer the effective pool before normalizing quota windows, preserving paid-only auto/expert/grok_4_3 quotas
  • keep the current pool as the fallback when live quota data is partial, avoiding silent downgrades on transient mode failures

Testing

  • ruff check app/control/account/quota_defaults.py app/control/account/refresh.py
  • python3 -m py_compile app/control/account/quota_defaults.py app/control/account/refresh.py
  • git diff --check

Related

Closes #536

…log]

Manual and import refreshes now probe all quota modes before inferring the account pool, so SuperGrok accounts misclassified as basic can recover. Partial quota responses keep the current pool instead of silently downgrading paid accounts.\n\nCloses chenyme#536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: super号导入后误识别成Basic,然后修改后也无法正常刷新额度,开启nsfw等

1 participant