GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — bin proxies: a JSON null body crashes seven chat proxies — parse succeeds, first deref throws, process exits 1 (clef and opencode-route already 400) · Issue #2816 · developing-today/code Closed Labels app/agy-proxybin/agy-proxy.mjs warm-session proxyapp/antigravity-ls-proxyPackage/app: antigravity-ls-proxy (bin/ in this repo)app/claude-code-proxybin/claude-code-proxy.mjsapp/codex-proxybin/codex-proxy.mjs fleet proxyapp/commandcode-proxybin/commandcode-proxy.mjs fleet proxyapp/design-code-proxybin/design-code-proxy.mjs fleet proxyapp/muse-proxybin/muse-proxy.mjs OpenAI-compatible Muse bridgeeffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item DescriptionSummarySeven of the nine The other two proxies already do this right and are the in-repo pattern to copy:
Evidence (main
|
| proxy | first deref |
|---|---|
bin/design-code-proxy.mjs |
dispatchWithFallback reads body.model at :247 (called from :236) |
bin/codex-proxy.mjs |
Boolean(body.stream) at :1088 |
bin/claude-code-proxy.mjs |
Array.isArray(body.messages) at :723 |
bin/agy-proxy.mjs |
Boolean(body.stream) at :847 |
bin/antigravity-ls-proxy.mjs |
Boolean(body.stream) at :770 |
bin/commandcode-proxy.mjs |
Boolean(body.stream) at :903 |
bin/muse-proxy.mjs |
Boolean(body.stream) at :1601 |
Probe (laptop, real modules, files md5-identical to main; probe dir
~/git/fleet/probe-2026-10-30-laneB-nullbody/): each proxy was spawned on a
scratch port, given a malformed-JSON control ({bad json → HTTP 400, process
alive in all nine), then POST /v1/chat/completions with body null:
UND_ERR_SOCKET, process exited withTypeError stack naming the deref line above).POST /v1/systemone) and opencode-route-proxy bothSecondary (code-read, not probed): non-object scalars/arrays take inconsistent
paths instead of a uniform 400 — e.g. an array body reaches design-code's
dispatch with body.model === undefined, and resolveModelConfig
(bin/design-code-proxy.mjs, requestedModel || 'design-code-pro') silently
substitutes the default model for a body that was never a chat request.
These proxies are long-lived fleet infrastructure (supervised, shared by many
sessions). A single stray null body — a buggy client, a health-check tool, a
hand-rolled curl — takes the proxy down for every routed session, and the
failure mode (process exit, socket reset) points at the proxy rather than at
the bad request, so it is hard to attribute after the fact. The two guarded
siblings prove the intended contract: a non-object body is a client error
(400), never a process exit.
bin/*-proxy.mjs JSON POST handler (chat completions at minimum;null, array, string, and number bodies all get the 400; the processbin/*.test.mjs gains a regression test in the🤖 Agent note · filed
🤖 Agent note · picked up
Merge pull request #3481 from developing-today/queue/5415-2816-proxy-…
🤖 Agent note · done
Implemented: inline guard after each chat-completions JSON.parse (design-code :192, codex :1086, claude-code :731, agy :860, antigravity-ls :763, commandcode :909, muse :1594) — non-plain-object body → that proxy's existing 400 shape, before any deref. Audit: one request-body JSON POST route per file; muse /v1/responses already guards via aliasResponsesRequestBody.
Tests (laptop): new per-proxy regression tests 7/7 pass (null/array/string/number → 400, proxy still serves). Full suites: design-code 11/11, claude-code 6/6, agy 12/12, antigravity-ls 13/13, commandcode 3/3, muse 25/25; codex 20 pass / 0 fail in a 20-min run cut by the harness timeout (pre-existing soak duration; details on the PR). Codex review on the PR: completed, no findings.