Summary
Qwen Code opened PR #5367 to let FileTokenStorage create its token file on first save instead of failing when no token file exists yet. The fix improves onboarding and credential reliability for extension or MCP OAuth flows that depend on local token persistence.
What changed
Qwen Code changed FileTokenStorage behavior so first-time credential saves can start from an empty token map when the token file does not exist.
Why it matters
Credential persistence bugs create outsized friction in agent tools because they break setup before users reach the actual workflow. Fixing first-save behavior makes Qwen Code's MCP and extension integrations more reliable in fresh environments.
Evidence excerpt
The digest describes issue #5365 as FileTokenStorage failing on first save because loadTokens throws when the file does not exist, with PR #5367 adding the fix.