mirror of
https://github.com/tester-army/e2e.git
synced 2026-12-03 04:45:58 +08:00
* fix(oauth): list opencode-console ids through OPENCODE_API_KEY when no login is stored e2e models opencode-console fell back to nothing without a stored login, even though opencodeConsole() runs fine on OPENCODE_API_KEY alone. The listing now reads the ids through the key when it is set and no login is stored; a stored login still wins, and the no-credentials message names the key as well as the login command. Fixes #1014. * fix(oauth): name OPENCODE_API_KEY only when the listing will read it `e2e models opencode-console` reads the key instead of a stored login, so a rejected stored login ended its message by telling the user to set a key the command would then ignore. The remedy now follows the credential the listing is about to use, and the tests pin both halves: the key absent from a rejected login's message, and the key never reaching another provider's listing. * fix(oauth): read OPENCODE_API_KEY over the stored login in e2e models - key wins, same as opencodeConsole(), so listing shows what runs - apiKeyEnv on the provider + credentialSource() replace 3 scattered lookups - bare `e2e models` includes a provider whose key is set - fix codex/models stub match (query string) that failed CI * fix(oauth): open the default credential store only when no API key is set * docs(changeset): qualify that listing needs the key to have /console/api/config * docs(changeset): keep the models entry to what users see --------- Co-authored-by: Oskar Kwaśniewski <oskar@okwasniewski.com>