Repository navigation
config(opencode): comment out cloudflare/openrouter sections; literal proxy ports - #921
Conversation
… proxy ports for antigravity-ls + commandcode - cloudflare-gateway, cloudflare-workers-ai, openrouter sections commented out with dated earmarks (fleet convention, matching the design-trio and muse blocks already in this file). They were defined-but-disabled since the #904 reconcile; the deployed files on both machines carry them commented, and this makes the canonical repo file match so a deploy from the repo can no longer resurrect them ahead of disabled_providers. - antigravity-ls (18745) and commandcode (18748) baseURLs: literal canonical ports instead of {env:...:-default} templates. The 2026-10-25 audit found the laptop's OpenChamber serve resolving the templates to an EMPTY port (http://127.0.0.1:/v1), taking both providers down while their proxies were healthy. Literals are the sandbox-proven form; canonical port definitions remain in home/common/default.nix. No other changes: disabled_providers already the fleet 18; model_routes (as tiered by #915) and agent roles untouched; verified by JSONC parse-diff against origin/main (provider delta exactly the three commented sections; content delta exactly the two baseURLs).
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…mplete session port vars instead CI's proxy-port guard (.github/scripts/check-proxy-port-fallbacks.sh, #434/#435) forbids literal proxy ports in opencode.jsonc by design, so the literal baseURLs from the previous commit come back out; the {env:VAR:-port} templates stay exactly as the guard requires. The empty-port failure is fixed at the layer the repo wiring actually controls. Evidence from the laptop's running serve (pid 371788, /proc/<pid>/environ): it carries CLEF/AGY/CODEX/ANTIGRAVITY_LS/ DESIGN_CODE _PROXY_PORT but NOT COMMANDCODE_PROXY_PORT — the home.sessionVariables list in home/common/default.nix was never extended when the muse/commandcode/claude-code ports (18747-18749) were added, so a serve launched outside a login shell resolves commandcode's template against an absent variable and gets an empty port. The OpenChamber unit sets only PATH and inherits the rest from the user-manager environment home-manager builds from home.sessionVariables, so completing that list is the fix: - sessionVariables gains MUSE_PROXY_PORT, COMMANDCODE_PROXY_PORT and CLAUDE_CODE_PROXY_PORT from their let-block definitions. - new let binding claudeCodeProxyPort = 18749 (the claude-code template added in 02177d0 had no single-source definition). Note: antigravity-ls ALSO resolved empty-port in that serve despite ANTIGRAVITY_LS_PROXY_PORT=18745 being present in its environ, which points at OpenChamber's own config handling rather than the environment; that half is documented in the PR, not papered over. Verified: guard script passes; nix format-check clean (0 changed).
What this does
Lands the remaining fixes from the 2026-10-25 afternoon provider audit (
~/workspace/opencode-provider-sync/audit-2026-10-25-pm.mdon the sandbox) into the canonical repo files, so deploying from the repo can no longer resurrect what Drew disabled this morning.Changes
.opencode/opencode.jsonc— comment out thecloudflare-gateway,cloudflare-workers-ai, andopenroutersections with dated earmarks, following this file's existing convention (design trio, muse). Since config(opencode): reconcile deployed config into the repo file #904 they were defined-but-disabled; both machines' deployed files carry them commented, and the laptop's morning revert showed how a merely-defined section comes back the momentdisabled_providersis edited carelessly. Commented + disabled is the fleet belt-and-braces.disabled_providersitself already holds the fleet 18 — unchanged. JSONC parse-diff vs main: the provider delta is exactly these three sections; nothing else in the file changes semantically.home/common/default.nix— complete the session port variables. The audit found the laptop's OpenChamber serve resolvingcommandcode's{env:COMMANDCODE_PROXY_PORT:-18748}baseURL to an empty port (http://127.0.0.1:/v1). Direct evidence (the serving process's/proc/<pid>/environ): it carriesCLEF/AGY/CODEX/ANTIGRAVITY_LS/DESIGN_CODE _PROXY_PORTbut notCOMMANDCODE_PROXY_PORT. Thehome.sessionVariablesport list was never extended when the 18747–18749 ports were added; the OpenChamber unit sets onlyPATHand inherits the rest from the user-manager environment home-manager builds fromhome.sessionVariables. So: the list gainsMUSE_PROXY_PORT,COMMANDCODE_PROXY_PORT,CLAUDE_CODE_PROXY_PORT, plus a newclaudeCodeProxyPort = 18749let binding (the claude-code template from 02177d0 had no single-source definition). Literal baseURLs were considered and rejected: the repo's own port-fallback guard (codex-proxy: PR #431's {env:CODEX_PROXY_PORT} baseURL has no fallback — opencode outside a home-manager shell gets an empty port #434/codex-proxy follow-up from PR #431: single-source the agy-proxy, clef-proxy and antigravity-ls-proxy ports too #435) forbids them in the config, and CI enforces it.One half of the bug is NOT fixed here — flagged with evidence
antigravity-lsalso resolved to an empty port in that same serve, despiteANTIGRAVITY_LS_PROXY_PORT=18745being present in the serving process's environ. That points at OpenChamber's own config handling (it demonstrably rewrites some baseURLs —claude-code's effective baseURL there is an OpenChamber-assigned concrete port, not the config value), not at the environment this repo controls. Not papered over; it needs OpenChamber-side investigation and can only be verified at the laptop's next switch/respawn.Deliberately NOT changed (flagged for Drew)
opencode-route/workhorse, reasoner →opencode-route/specialist, classifier-complex →opencode-route/workhorse. Those postdate this morning's deployed-file role edits (coder →deepseek/deepseek-chat, reasoner →deepseek/deepseek-v4-pro), so per the standing conflict rule the repo's newer values stay — Drew to rule if the direct-model roles were preferred after all.model_routes: config(opencode): tier route pools over per-model plan pools; agents repointed to pools #915's tiered plan pools supersede this morning's five-pool cleanup; verified the new pools reference no disabled provider. (Two pools target the still-unwiredopencode-go.lab/opencode-go.personalinstances — that workstream's in-progress wiring, left as-is. Side note: the port-fallback guard's proxy list predates claude-code and doesn't coverCLAUDE_CODE_PROXY_PORTyet.)opendesignapiKey: the working sandbox form is no config key at all — auth resolves from the credential store (credentialrow, integrationopendesign, present on the sandbox). This file already matches that form. The laptop's 401 is a missing credential-store row on the laptop, not a config gap; restoring that row is a machine-side follow-up, flagged rather than papered over with a config literal.Verification
nix run .#format-checkon both changed files: clean (0 changed).