Repository navigation
fix(auth): 保留可恢复的登录会话 - #109
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与改动
Python CLI 刷新认证时将任意认证错误视为令牌失效,可能在临时服务故障时清除会话。现在仅在明确的 invalid_grant 时清除并重新登录;MSA 令牌轮换后先在状态目录锁内保存,再继续 Xbox/Minecraft 请求,使下游失败后仍能重试。与 OrzMCKit #104 的行为保持一致。
同时让 Rich 进度条测试显式选择可渲染终端,避免在 TERM=dumb 环境下误报。
验证
uv run ruff format --check .、uv run ruff check .、uv run mypy通过。uv run --all-packages pytest:488 passed、3 skipped。uv build --all-packages通过;未发版。