Skip to content

fix(opencode-review): replace free OpenRouter pins with paid coder models#622

Merged
seonghobae merged 1 commit into
mainfrom
openrouter-paid-fallback
Jul 24, 2026
Merged

fix(opencode-review): replace free OpenRouter pins with paid coder models#622
seonghobae merged 1 commit into
mainfrom
openrouter-paid-fallback

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

Why

PR #619 pinned free tool-capable OpenRouter models, but a live probe (temporary diag workflow on branch openrouter-latency-diag, removed after use) showed every :free model now returns Rate limit exceeded: free-models-per-day-high-balance — the account's shared free-models-per-day quota is exhausted. Worse, OpenCode retries the 429 internally, so each free candidate hangs for its full 5400s timeout: run 30094198328 burned 90min on nvidia/nemotron-3-ultra-550b-a55b:free + 90min on poolside/laguna-m.1:free and still ended exhausted.

What

  • .github/workflows/opencode-review.yml: OpenRouter provider models + OPENCODE_MODEL_CANDIDATES now pin paid coder models: deepseek/deepseek-v3.2 (USD 0.269/0.4 per 1M, ctx 163840, out 65536) and qwen/qwen3-coder (USD 0.3/1, ctx 262144, out 65536). Both are tool-capable; billed against the org's OpenRouter credits (~USD 0.1 per review). Comment block updated.
  • tests/test_opencode_agent_contract.py: candidate list assertions updated (4 sites).
  • scripts/ci/test_strix_quick_gate.sh: 3 candidate assertions updated.

Validation

  • pytest tests/test_opencode_agent_contract.py::test_workflow_provisions_sandbox_tool_and_reviewer_agent tests/test_opencode_agent_contract.py::test_opencode_model_pool_sets_high_effort_for_capable_candidates — 2 passed.
  • Live OpenRouter catalog confirms both paid models support tools and the pinned limits match top_provider caps.

Developer experience: pool no longer wastes 3h on quota-dead free candidates; OpenRouter slots always have live capacity.
User experience: org PR reviews complete instead of timing out, unblocking the merge queue.

…dels

Free-tier candidates hit the shared free-models-per-day cap
(free-models-per-day-high-balance) and hung for the full 5400s candidate
timeout each, exhausting the pool. Live probe confirmed every :free model
429s once the daily cap is spent. Pin cheap paid coder models instead
(deepseek/deepseek-v3.2, qwen/qwen3-coder) billed against org OpenRouter
credits, so the OpenRouter slots always have live capacity.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 24, 2026 16:02
@seonghobae
seonghobae merged commit 901df80 into main Jul 24, 2026
@seonghobae
seonghobae deleted the openrouter-paid-fallback branch July 24, 2026 16:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants