GeezerVison is showing github.com — config(opencode): claude-code-proxy landed without its in-repo wiring — provider block still models-only while it is the default model, no start script, home unit, or port registration (#875 follow-up) · Issue #894 · developing-today/code
config(opencode): claude-code-proxy landed without its in-repo wiring — provider block still models-only while it is the default model, no start script, home unit, or port registration (#875 follow-up) #894DescriptionFinding (from pr-diff-review of PR #875, merged; merge commit 74b849b, current main a365373)
PR #875 added bin/claude-code-proxy.mjs + its test — and nothing else (2 files). The bridge's in-repo landing is incomplete compared with every sibling fleet proxy, and the repo config it was built for still cannot use it.
Evidence (all verified on current main a365373511)
- The provider it serves is still unwired in the repo config — and it is the default model.
.opencode/opencode.jsonc:28 sets "default": "claude-code/claude-haiku-5-5" and four agent entries reference claude-code/claude-haiku-5-5, but the claude-code provider block (.opencode/opencode.jsonc:30) contains only models — no npm/package, no options.baseURL. PR claude-code-proxy: resident stream-json bridge for the Claude Code CLI (#480) #875's own body states this models-only shape is what "hangs with UnsupportedPackageError". Sibling pattern for comparison: the commandcode block at .opencode/opencode.jsonc:4258 has "npm": "@ai-sdk/openai-compatible" and "baseURL": "http://127.0.0.1:{env:COMMANDCODE_PROXY_PORT:-18748}/v1".
- No start script. Siblings ship
bin/commandcode-proxy-start.sh / bin/muse-proxy-start.sh; there is no bin/claude-code-proxy-start.sh.
- No home-manager unit.
home/common/default.nix defines systemd.user.services.commandcode-proxy (ExecStart at the bin start script, ~line 758) and port bindings for clef/agy/codex/antigravity-ls/design-code/muse/commandcode — there is no claude-code-proxy unit.
- No port registration.
home/common/default.nix defines the *ProxyPort lets and exports CLEF_PROXY_PORT/AGY_PROXY_PORT/CODEX_PROXY_PORT/ANTIGRAVITY_LS_PROXY_PORT/DESIGN_CODE_PROXY_PORT/COMMANDCODE_PROXY_PORT session variables; there is no claudeCodeProxyPort / CLAUDE_CODE_PROXY_PORT (the proxy itself defaults to 18749 via parseProxyPort('CLAUDE_CODE_PROXY_PORT', 18749)).
Per PR #875's body, the working deployment exists only as sandbox-local state (~/tools/claude-code-proxy/ + a systemd unit + an init.sh step) — the same deployed-first pattern as the cline-pass rename, which then needed PR #887 to propagate into the repo source. Nothing currently tracks doing the same propagation for this bridge, so a fresh checkout / another machine gets a default model that hangs.
Related but distinct: #883 (stale bin/ tree in the home-layer eval) covers the store copy missing claude-code-proxy.*; this issue is about the repo-side wiring/unit/port pieces that do not exist at all yet.
Acceptance criteria
.opencode/opencode.jsonc: the claude-code provider block gains the sibling wiring — "npm": "@ai-sdk/openai-compatible" and options.baseURL of the form http://127.0.0.1:{env:CLAUDE_CODE_PROXY_PORT:-18749}/v1 (env-placeholder form, so the literal-port guard from nix ci red on main: proxy-port guard misses muse/commandcode proxies — opencode.jsonc hardcodes 18747/18748 #866/fix(ci): guard muse/commandcode proxy ports, drop literal ports in opencode.jsonc #867 keeps passing) — and the file still parses as JSONC.
bin/claude-code-proxy-start.sh exists, mirroring bin/commandcode-proxy-start.sh's env handling.
home/common/default.nix: a claudeCodeProxyPort (18749) with its CLAUDE_CODE_PROXY_PORT session variable, any proxy-port guard table updated, and a systemd.user.services.claude-code-proxy unit mirroring commandcode-proxy.
- A session started from the repo config on a machine with only repo-deployed state (no hand-placed
~/tools copies) can run the default model claude-code/claude-haiku-5-5 through the bridge without UnsupportedPackageError.
Activitydeveloping-today commented on Oct 25, 2026 added kind/bugSomething isn't working (prefixed form of the classic bug label) effort/sSmall: expected under 2 hours of work area/homeHome-manager / user environment configuration meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Oct 26, 2026dezren39 commented on Oct 26, 2026 Intake review
Fleet monitor intake pass (2026-10-25 run).
Partially solved since filing — scope narrowed, NOT closed: I verified current main this run:
- Item 1 (provider block unwired) — resolved.
.opencode/opencode.jsonc now gives the claude-code provider "npm": "@ai-sdk/openai-compatible" and options.baseURL http://127.0.0.1:{env:CLAUDE_CODE_PROXY_PORT:-18749}/v1 (PR config(opencode): reconcile deployed config into the repo file #904, merged 2026-10-25T21:40Z, "reconcile deployed config into the repo file"; PR config(opencode): comment out cloudflare/openrouter sections; literal proxy ports #921 followed up on port literals).
- Item 4 (no port registration) — resolved.
home/common/default.nix now defines claudeCodeProxyPort = 18749 and exports CLAUDE_CODE_PROXY_PORT.
- Item 2 (no start script) — still open.
bin/ on main has claude-code-proxy.mjs and its test, but no claude-code-proxy-start.sh (siblings ship commandcode-proxy-start.sh / muse-proxy-start.sh).
- Item 3 (no home-manager unit) — still open. No
systemd.user.services.claude-code-proxy unit in home/common/default.nix.
Remaining work: the start script + home unit only, following the commandcode-proxy pattern. Effort reclassed s on the remaining scope.
Related: PR #875 (landed the proxy itself), PR #904 / PR #921 (the partial resolution above), #883 (home-layer eval staleness — same home layer this unit will live in; a fix there may be a prerequisite for the unit to take effect on the laptop). dezren39 commented on Oct 28, 2026 Enrichment from new-issue-creator-code-b (2026-10-28 run, main 2617b73) — state truth-up plus one concrete remainder, deliberately NOT filed as a separate issue because this issue's acceptance criteria already say "any proxy-port guard table updated":
Since filing, these pieces have landed (evidence on current main):
- Provider baseURL:
.opencode/opencode.jsonc:54 now has "baseURL": "http://127.0.0.1:{env:CLAUDE_CODE_PROXY_PORT:-18749}/v1" in env-placeholder form.
- Port registration:
home/common/default.nix:24 defines claudeCodeProxyPort = 18749; and :1558 exports the CLAUDE_CODE_PROXY_PORT session variable.
- Supervision: the proxy was enrolled in the supervised list on 2026-10-27 (
home/common/default.nix:796-818, name = "claude-code-proxy", portEnv = "CLAUDE_CODE_PROXY_PORT") — the enrollment comment itself calls out the same drift class this issue tracks.
Still missing — the proxy-port guard table. .github/scripts/check-proxy-port-fallbacks.sh (run by .github/workflows/nix-ci.yml:38) still lists only 7 proxies in its proxies array; there is no CLAUDE_CODE_PROXY_PORT|claudeCodeProxyPort|bin/claude-code-proxy.mjs|yes row, and its success line still reports "(7 proxies)" while the let block defines 8 ports. So the newest proxy is the only one whose three copies can drift silently — exactly the #434/#435 failure the guard exists to prevent. All three copies currently agree, verified this run: let 18749 (default.nix:24), parseProxyPort('CLAUDE_CODE_PROXY_PORT', 18749) (bin/claude-code-proxy.mjs:42), {env:CLAUDE_CODE_PROXY_PORT:-18749} (opencode.jsonc:54) — adding the row today passes (check-proxy-port-fallbacks.sh exits 0 on the current tree).
Also still missing per the original criteria: bin/claude-code-proxy-start.sh does not exist.
Suggested remainder for triage: add the guard row (one line) as part of closing this issue, and confirm whether the supervisor enrollment satisfies the "home unit" criterion or a systemd.user.services.claude-code-proxy unit is still wanted.
Found via: filed this run dezren39 commented on Nov 2, 2026 dezren39 commented on Nov 2, 2026 🤖 Agent note · triaged — ALREADY DONE; all four acceptance items substantively met on current main, no follow-up
- Agent: queue worker (
repo-worker-code), lane 7b47536b-c162-444c-be8a-3a9538cc4cb5, task 2281
- Verified on
origin/main 9f730f1c (fresh git show reads this run):
- Provider block:
claude-code carries the sibling wiring (options.baseURL http://127.0.0.1:{env:CLAUDE_CODE_PROXY_PORT:-18749}/v1, env-placeholder form) — item 1 met (landed via PR config(opencode): reconcile deployed config into the repo file #904 + config(opencode): comment out cloudflare/openrouter sections; literal proxy ports #921 port-literal follow-up).
- Port registration:
home/common/default.nix defines claudeCodeProxyPort = 18749 + exports CLAUDE_CODE_PROXY_PORT — item 4 met.
- Home unit:
systemd.user.services.claude-code-proxy exists (home/common/default.nix:785), with an inline writeShellScript "claude-code-proxy-start" execing bin/claude-code-proxy.mjs — items 2+3 met in substance (start mechanism lives in the unit rather than a standalone bin/*-start.sh; the unit is the only consumer and it is enrolled + supervised since 2026-10-27).
- Guard table:
.github/scripts/check-proxy-port-fallbacks.sh:46 carries the CLAUDE_CODE_PROXY_PORT|claudeCodeProxyPort|bin/claude-code-proxy.mjs|yes row — the remainder the 2026-10-28 comment named, now landed.
- Drews own config note (
.opencode/opencode.jsonc:31-39, 2026-10-27) confirms the end-to-end goal: "the setup itself is confirmed working — the proxy (:18749) is live and serves claude-haiku-5-5 (verified 2026-10-27)". The provider sits in disabled_providers today as a deliberate billing pause (Claude plan on free tier), not a wiring defect — re-enabling is a future billing event, outside this issues scope. Extracting the inline start script to a standalone bin/ file would be make-work with zero functional delta: deliberately NOT filed.
- Routing decision: no-action. No packets enqueued (would duplicate landed work); related Home-layer eval uses a stale bin/ tree: commandcode-proxy unit 203/EXEC, managed opencode stuck on old rev #883 is a distinct store-copy thread, untouched.
- Expectation: done = this verdict + issue closed as delivered + lifecycle labels cleared.
dezren39 commented on Nov 2, 2026 Closing as delivered: all four acceptance items verified on current main (provider wiring, port registration, home-manager unit with inline start script + supervision, guard-table row), and the end-to-end path was Drew-verified live on 2026-10-27. The current disabled_providers entry is a deliberate billing pause, not missing wiring. Evidence in the triage note above (task 2281).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|