Title: design-code-proxy startup log hardcodes backend ports — misreports custom ANTIGRAVITY_LS_PROXY_PORT/CODEX_PROXY_PORT · Issue #496 · developing-today/code · GitHub
Open Graph Title: design-code-proxy startup log hardcodes backend ports — misreports custom ANTIGRAVITY_LS_PROXY_PORT/CODEX_PROXY_PORT · Issue #496 · developing-today/code
X Title: design-code-proxy startup log hardcodes backend ports — misreports custom ANTIGRAVITY_LS_PROXY_PORT/CODEX_PROXY_PORT · Issue #496 · developing-today/code
Description: Problem bin/design-code-proxy.mjs's startup "Backends" log line hardcodes the two backend ports, although both are now strictly validated environment variables in the same file. With custom ports configured, the log misreports where the ...
Open Graph Description: Problem bin/design-code-proxy.mjs's startup "Backends" log line hardcodes the two backend ports, although both are now strictly validated environment variables in the same file. With custom ports c...
X Description: Problem bin/design-code-proxy.mjs's startup "Backends" log line hardcodes the two backend ports, although both are now strictly validated environment variables in the same file. With ...
Opengraph URL: https://github.com/developing-today/code/issues/496
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"design-code-proxy startup log hardcodes backend ports — misreports custom ANTIGRAVITY_LS_PROXY_PORT/CODEX_PROXY_PORT","articleBody":"## Problem\n\n`bin/design-code-proxy.mjs`'s startup \"Backends\" log line hardcodes the two backend ports, although both are now strictly validated environment variables in the same file. With custom ports configured, the log misreports where the proxy will actually route — the exact diagnostic an operator reads first when a backend is unreachable.\n\n## Evidence (verified on main d7a6d909)\n\n- `bin/design-code-proxy.mjs:8-9` parses the real values:\n - `ANTIGRAVITY_LS_PORT = parseProxyPort('ANTIGRAVITY_LS_PROXY_PORT', 18745)`\n - `CODEX_PROXY_PORT = parseProxyPort('CODEX_PROXY_PORT', 18744)`\n (strict validation added by PR #493, closing #483.)\n- The route table (`bin/design-code-proxy.mjs:17-27`, the `MODELS` entries) uses those parsed variables.\n- But `bin/design-code-proxy.mjs:302` logs literals:\n\n ```js\n console.log(`[design-code-proxy] Backends: Antigravity LS (18745), Codex (18744), AMR Upstream (${AMR_UPSTREAM_URL})`);\n ```\n\n The adjacent Listening line (:301) correctly interpolates `${PORT}`.\n\n- Live repro this run:\n\n ```\n $ DESIGN_CODE_PROXY_PORT=19003 ANTIGRAVITY_LS_PROXY_PORT=19001 CODEX_PROXY_PORT=19002 node bin/design-code-proxy.mjs\n [design-code-proxy] Listening on http://127.0.0.1:19003\n [design-code-proxy] Backends: Antigravity LS (18745), Codex (18744), AMR Upstream (https://amr-link.open-design.ai/v1)\n ```\n\n The proxy routes to 19001/19002 but the log claims 18745/18744.\n\n- Dedup: no open or recently closed issue names the Backends log line (searched \"design-code-proxy Backends log\" and \"hardcoded ports startup log\"). The other four proxies' startup lines interpolate `${PORT}` and name no backend ports — this is the only site. The bin proxies exist only in this repo.\n\n## Why it matters\n\nCustom backend ports are a supported configuration (#483/#493 made them strictly validated env vars, and #434 adds `{env:VAR:-fallback}` substitution for these proxy base URLs). An operator debugging a failed backend with non-default ports will be told by the proxy's own log that it is talking to ports it is not using.\n\n## Acceptance criteria\n\n- The Backends log line interpolates the parsed `ANTIGRAVITY_LS_PORT` / `CODEX_PROXY_PORT` values instead of the literals 18745/18744.\n- With custom `ANTIGRAVITY_LS_PROXY_PORT` / `CODEX_PROXY_PORT` set, the startup log shows those ports; with defaults, output is unchanged.\n- Existing `bin/proxy-port.test.mjs` suite still passes.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-21T17:59:12Z","url":"https://github.com/developing-today/code/issues/496"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6c41fd23-6b28-2e96-04b7-39de2d51500f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEFA:3AD124:C3D6D2:FD29E2:6B063EC5 |
| html-safe-nonce | d56e44e8152044768dd7cf78789f1184501e3391cf551ab808fd0675ac1cffae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUZBOjNBRDEyNDpDM0Q2RDI6RkQyOUUyOjZCMDYzRUM1IiwidmlzaXRvcl9pZCI6IjY3Nzg5MzAxMjk4NTIwNTUyMzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a94688c95dce0d2b6bd64ea06f3ad5dfbdeb77463122b47c9aff03a8e50bf6b6 |
| hovercard-subject-tag | issue:5965801232 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/496/issue_layout |
| twitter:image | https://opengraph.githubassets.com/54d54a62688b66d7cad412a35688925b18f8eccdedd2a4b5f8aee1e696962d37/developing-today/code/issues/496 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/54d54a62688b66d7cad412a35688925b18f8eccdedd2a4b5f8aee1e696962d37/developing-today/code/issues/496 |
| og:image:alt | Problem bin/design-code-proxy.mjs's startup "Backends" log line hardcodes the two backend ports, although both are now strictly validated environment variables in the same file. With custom ports c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | dcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0f38f5735226749ec5e08a8649dce4cb2613d9ad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width