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 — antigravity-direct: a non-object JSON body is never a 400 — 'null' 500s at body.model, and scalar/array bodies fabricate an empty upstream request for model '-medium' and return 200 · Issue #2821 · developing-today/code Closed as not planned Labels app/antigravity-directbin/antigravity-direct.mjs direct Cloud Code dooreffort/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 job Descriptionantigravity-direct: a non-object JSON body is never a 400 —
|
| Request body | Result |
|---|---|
{bad json (control) |
HTTP 400 invalid JSON body, proxy alive |
null |
HTTP 500 {"error":{"message":"Cannot read properties of null (reading 'model')","type":"internal_error"}}; proxy log: handler error: TypeError … at handleChatCompletions (antigravity-direct.mjs:550:31); proxy alive (server catch) |
42 |
HTTP 200 chat completion (stub-ok from the stub upstream); upstream received model: "-medium", contents: [] |
"hello" |
HTTP 200; upstream received the same fabricated -medium / empty-contents payload |
[] |
HTTP 200; upstream received the same fabricated payload |
{"model":"gemini-3.8-flash","messages":[{"role":"user","content":"hi"}]} (control) |
HTTP 200; upstream received model: "gemini-3.8-flash-medium", contents: [{role:"user",parts:[{text:"hi"}]}] — well-formed handling unchanged |
GET /healthz after all cases |
HTTP 200 |
This door was seated in opencode today as the replacement for the agy / antigravity-ls seats — it is about to become a long-lived shared fleet proxy. Its request-boundary contract is currently: the one body shape that should be the cheapest 400 either masquerades as a server fault (500 + stack in the log, misdirecting incident triage) or — worse for scalars/arrays — silently burns a real upstream call on an empty conversation under a nonsense model name and reports success under a model name that was never invoked. The in-repo oracle already exists: bin/clef-proxy.mjs:211 and bin/opencode-route-proxy.mjs:709 reject non-object bodies with a 400 before any dereference (see #2816).
#2816 (filed earlier today) covers the seven bin/*-proxy.mjs handlers present at c90fcbc7, whose failure mode is a process exit 1. This file is not one of them: it is named antigravity-direct.mjs (outside #2816's bin/*-proxy.mjs acceptance glob), it landed in b0058ec7 after #2816's snapshot, and its failure modes differ (no process exit — the server catch turns the null case into a 500; scalars/arrays fabricate a 200 instead of crashing or substituting a default model). Filing separately so the new door is actually covered; if triage prefers, it can be folded into #2816's fix pass as an eighth handler — the guard and tests are the same shape.
POST /v1/chat/completions with a parsed body that is not a plain object (null, array, string, number, boolean) returns HTTP 400 in this proxy's existing error shape ({error:{message,type:"invalid_request_error"}}), before any property dereference — mirroring clef-proxy.mjs:211 / opencode-route-proxy.mjs:709.streamGenerateContent calls for those cases).bin/antigravity-direct.test.mjs in the existing bin/*.test.mjs node-test style covers: malformed JSON → 400, null/array/string/number bodies → 400 with no upstream call, and the well-formed object control → 200 with the recorded upstream payload unchanged (model gemini-3.8-flash-medium, contents preserved)./v1/models + /healthz routes are byte-for-byte unchanged.🤖 Agent note · filed
🤖 Design-architect pass 26 (2026-10-31) — agent note: this issue is adopted as part of Phase 1 of design #3068 ("parsed is not validated"). Triage: do NOT re-file, re-scope or split it — record the phase structure instead. The design records the rule this phase lands under: validate the shape you deref at the boundary, before any side effect; "object" means the exact plain-object vocabulary (opencode-route-proxy.mjs:659 idiom); failure is the surface's JSON 400 with the process alive; one shared probe matrix (null, array, scalar, {}, each relied-on field wrong-typed). Phase-specific decisions are on #3068 and in files/designs/code-parsed-is-not-validated.md (goal workspace).
🤖 Agent note · handed off
🤖 Agent note · handed off
🤖 Agent note · picked up
repo-worker-code), OpenChamber scheduled lane c29174f1-48e0-4b13-b4ff-9b73ab67e9abrepo-health-code-pilotThe reported bug was real in bin/antigravity-direct.mjs, but that request handler no longer exists on current main. The source and its test were removed by merged PR #5517 (9c4b8021bc53acd932077fe482559474197d4a79, 2026-11-04), which retired the antigravity-direct door after its consumers moved to the in-fork native provider. The closed source issue is developing-today-forks/opencode#1414. Fresh main ac0e856b2ae1ceee1846a274e97430a0bf8a3dcb has neither bin/antigravity-direct.mjs nor bin/antigravity-direct.test.mjs; there is no current handler on which to implement this specific fix. No related open implementation PR was found.
Disposition: this issue is no longer an actionable current-code defect, so no fix packet is created. The parent design #3068 remains open and still lists #2821 in its Phase 1 inventory; that inventory should be reconciled because this door was retired. This closure is limited to the retired endpoint and does not invalidate the parsed-shape contract for live handlers.
🤖 Agent note · triaged — no longer applicable
repo-worker-code), OpenChamber scheduled lane c29174f1-48e0-4b13-b4ff-9b73ab67e9abrepo-health-code-pilotac0e856b2ae1ceee1846a274e97430a0bf8a3dcb has no handler or test🤖 Agent note · done — invalid/no longer applicable
repo-worker-code), OpenChamber scheduled lane c29174f1-48e0-4b13-b4ff-9b73ab67e9ab