Skip to content

Conversation

@numman-ali
Copy link
Owner

@numman-ali numman-ali commented Jan 4, 2026

Summary
Numman has been tied up the last couple of weeks, so I handled this on his behalf and consolidated the scattered fixes into one coherent, fully‑tested implementation. This lands the missing headless auth fallback, aligns error handling with OpenCode conventions, maps usage‑limit 404s to retryable 429s, and preserves AGENTS/tool‑call integrity in the request transformer. It also adds OpenCode variants support (modern config) and a cross‑platform one‑command installer that safely updates the global config and clears plugin cache. The result is fewer auth failures, correct retries, no more silent loss of instructions, and an easier install/update path for users.

Fixes / How it’s rectified

Adds / Enhancements

  • Adds OpenCode v1.0.210+ variants support with a modern config preset and a legacy config for older versions; request transformer now respects provider‑supplied variant options before falling back to defaults.
  • Adds cross‑platform installer/update command: npx -y opencode-openai-codex-auth@latest (global config only, backs up config, clears plugin cache). Includes --legacy for old OpenCode.
  • Config templates now default to unpinned plugin entry for “latest” installs, with docs updated accordingly.

PRs re‑implemented (no direct merge)
Supersedes: #84 #81 #52 #88 #86 #59 #63 #73 #90 #91
This PR incorporates the intent of each, with additional edge‑case handling and tests.

Tests

  • npm test
  • npm run build
  • ./scripts/test-all-models.sh

CC / Thanks
@christso @CasualDeveloper @paflopes @connorads @mosfor @paarth-a @code-yeongyu @llajas @aryasaatvik @cau1k
and contributors in the threads:
@daniel-sc @kearygriffin @haininhhoang94 @kim0 @Srini-B @hyprbased @emrosenf @tbrandenburg @jhartumc @ramarivera @mariomeissner @EvanZhouDev @mrairdon-midmark @mkoorn @EvanNotFound @jasonish @igormaneschy @Tarquinen @mikhail-shemelin @junhoyeo @tayiorbeii @ivankazzzz

@numman-ali numman-ali merged commit 549a198 into main Jan 4, 2026
3 checks passed
@junhoyeo
Copy link

junhoyeo commented Jan 5, 2026

Congrats on the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment