Uh oh!
There was an error while loading. Please reload this page.
fix(headless): route DeepSeek OpenCode through host proxy - #1753
Merged
Conversation
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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
Our own canary smoke run (
deep-swe-1.1-full | deepseek-v4-flash-max | opencode, LIMIT=5) caught what two review rounds missed: every OpenCode competitor cell failsinfra_failed / auth— the CLI dialshttps://api.deepseek.comdirectly and Pier's Squid egress proxy denies it (x-squid-error: ERR_ACCESS_DENIED), becauseopencode-benchmark.jsonhas nodeepseekprovider section routing it through the host credential proxy. The published TB2.1 DeepSeek report ran from the branch that carried this fix; when #1730 cherry-picked only the runtime profile, the config section stayed behind — so both DeepSeek×OpenCode compositions on main (terminal-bench-2.1anddeep-swe-1.1-full) are affected.Cherry-picks
23b6bef7cunchanged: adds thedeepseekprovider section ({env:DEEPSEEK_API_KEY}/{env:DEEPSEEK_BASE_URL}placeholders, which the adapter's_runtime_envalready populates from the per-attempt proxy lease) plus the contract assertion.Verification
opencode.txterror event shows Squid 403 forhttps://api.deepseek.com/*; the maka cell of the same pair completed, isolating the failure to the OpenCode provider routingpackages/headlesssuite: 1448 pass / 0 fail;format/lintcleanReview focus
The failure mode proves why runtime profiles and provider routing must land together; nothing else in the run path changed.