Repository navigation
fix: resolve Go API keys from OpenCode Console credentials - #4
Conversation
Check opencode after opencode-go in the database and legacy auth store. Skip OAuth entries and preserve existing credential precedence. Add isolated credential tests and document the lookup order.
|
Thanks, the ordering and the tests are solid. One note before I merge this, so we do not "fix" the OAuth case the wrong way. Skipping One small change so this does not conflict with #5 and #6: use |
|
Resolved the conflict, pls check. |
Problem
The resolver only checks
opencode-go. If OpenCode stores the API key under the Console integration (opencode), the plugin cannot find it.Changes
opencodeafteropencode-goin the database and legacyauth.json.This PR does not change sidebar rendering, polling, or pace indicators.
Verification
npm test: 19 tests pass.npm run typecheck: passes for production sources.The tests do not use live credentials or call the usage endpoint.