fix: check both qwen-code auth keys with fallback#28
Closed
ARIFCSE10 wants to merge 1 commit intoslkiser:mainfrom
Closed
fix: check both qwen-code auth keys with fallback#28ARIFCSE10 wants to merge 1 commit intoslkiser:mainfrom
ARIFCSE10 wants to merge 1 commit intoslkiser:mainfrom
Conversation
87a9ad8 to
1d0d2e0
Compare
7277bb0 to
e9a65a9
Compare
e9a65a9 to
7debe5d
Compare
Owner
|
Fixed in |
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.
Summary
The
qwen-codeprovider shows asdisabled unavailablein/quota_statuseven when the user has properly connected Qwen Code.Root Cause
The
opencode-qwencode-authplugin stores OAuth credentials under the key"qwen-code"inauth.json.However, this plugin was looking for the key
"opencode-qwencode-auth"instead.Fix
"qwen-code"(correct key fromopencode-qwencode-authplugin)"opencode-qwencode-auth"(backward compatibility)Files Changed
src/lib/qwen-auth.ts: Check both auth keys with nullish coalescing fallback