René's URL Explorer Experiment


Title: codex-proxy: PR #431's {env:CODEX_PROXY_PORT} baseURL has no fallback — opencode outside a home-manager shell gets an empty port · Issue #434 · developing-today/code · GitHub

Open Graph Title: codex-proxy: PR #431's {env:CODEX_PROXY_PORT} baseURL has no fallback — opencode outside a home-manager shell gets an empty port · Issue #434 · developing-today/code

X Title: codex-proxy: PR #431's {env:CODEX_PROXY_PORT} baseURL has no fallback — opencode outside a home-manager shell gets an empty port · Issue #434 · developing-today/code

Description: Finding PR #431 single-sources the codex-proxy port by changing the openai-codex provider's baseURL in .opencode/opencode.jsonc from the hardcoded http://127.0.0.1:18744/v1 to http://127.0.0.1:{env:CODEX_PROXY_PORT}/v1. The only place th...

Open Graph Description: Finding PR #431 single-sources the codex-proxy port by changing the openai-codex provider's baseURL in .opencode/opencode.jsonc from the hardcoded http://127.0.0.1:18744/v1 to http://127.0.0.1:{env...

X Description: Finding PR #431 single-sources the codex-proxy port by changing the openai-codex provider's baseURL in .opencode/opencode.jsonc from the hardcoded http://127.0.0.1:18744/v1 to http://127.0.0.1:...

Opengraph URL: https://github.com/developing-today/code/issues/434

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"codex-proxy: PR #431's {env:CODEX_PROXY_PORT} baseURL has no fallback — opencode outside a home-manager shell gets an empty port","articleBody":"## Finding\n\nPR #431 single-sources the codex-proxy port by changing the `openai-codex` provider's baseURL in `.opencode/opencode.jsonc` from the hardcoded `http://127.0.0.1:18744/v1` to `http://127.0.0.1:{env:CODEX_PROXY_PORT}/v1`. The only place the new variable is set is `home.sessionVariables` (`home/common/default.nix`, from the single `codexProxyPort` definition) — i.e. it exists only in processes that inherit a home-manager shell session's environment.\n\nOpenCode's `{env:VAR}` substitution has **no fallback**: a missing variable substitutes the empty string. In developing-today/opencode, `packages/core/src/config/variable.ts` (substitute function): `const value = (input.env?.[name] ?? process.env[name]) || \"\"`. So any opencode process launched without `CODEX_PROXY_PORT` in its environment gets baseURL `http://127.0.0.1:/v1` — a dead provider, and exactly the \"looks like a network/auth problem\" failure mode PR #431 set out to eliminate. The proxy script itself keeps a fallback (`bin/codex-proxy.mjs:7`: `process.env.CODEX_PROXY_PORT || '18744'`); after this PR the client side no longer has one, so the two sides can now disagree in the opposite direction: proxy listening on 18744, client dialling port \"\".\n\n## Evidence\n\n- PR #431 (OPEN, head `5be5217f`): `.opencode/opencode.jsonc` baseURL becomes `http://127.0.0.1:{env:CODEX_PROXY_PORT}/v1`; `home/common/default.nix` sets `CODEX_PROXY_PORT = toString codexProxyPort;` only under `home.sessionVariables`.\n- PR #431's verification only covers the variable-set case: \"a test server with `CODEX_PROXY_PORT=18744` in its environment resolved the provider from the substituted config correctly.\" The unset case is untested.\n- Concrete unset launch path, verified today: the Muse sandbox's `opencode serve` runs as a systemd service whose environment file (`~/tools/secrets.d/opencode-serve.env`) sets the proxy/CA/Cloudflare keys and the PR #430 feature flags but **not** `CODEX_PROXY_PORT` (key list checked 2026-10-20), while its deployed config is this repo's `.opencode/opencode.jsonc`. Merging #431 as-is turns that server's codex provider from \"works when the proxy runs\" into \"empty port, always dead\". Desktop/VS Code launches and other service contexts have the same exposure wherever they don't source the shell session variables.\n\n## Why it matters\n\nThe hardcoded port worked in *every* launch context; the env-substituted one silently works only in shell-launched ones. This reintroduces the PR's own failure mode (silently dead provider, misleading error) for a different — and already existing — class of launches.\n\n## Acceptance criteria\n\n- With `CODEX_PROXY_PORT` unset, the `openai-codex` provider's resolved baseURL still points at the proxy's fallback port (18744), OR every supported way of launching opencode with this config (shell, systemd service, desktop/VS Code) demonstrably receives the variable, with the sandbox `opencode-serve` service as the worked example.\n- A check or test pins the unset-variable behaviour so it can't regress silently (e.g. rendering/validating the effective config with the variable unset).\n- The solution keeps PR #431's single-source property: one definition of the port that all consumers derive from.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-20T19:09:50Z","url":"https://github.com/developing-today/code/issues/434"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:001e8dc7-6948-451b-c310-bae4eb3e84dc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA3E4:DAF5F:705B91:916425:6B062670
html-safe-nonce4068440fb1bf9314efd1d82ee4899b46d7b3b8e39a2868dda33103e89aa51d66
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0U0OkRBRjVGOjcwNUI5MTo5MTY0MjU6NkIwNjI2NzAiLCJ2aXNpdG9yX2lkIjoiNjU4ODkzNjE5MTMxNDYzNDM1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdb88e74bb3e86e147849a4f8b9d4015012e14debdd97ca5119c6949213389eab
hovercard-subject-tagissue:5947897875
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/434/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7bc677c4e7756f7a10353f8bbf003c987cdb81816398957a6600ea94ca017718/developing-today/code/issues/434
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7bc677c4e7756f7a10353f8bbf003c987cdb81816398957a6600ea94ca017718/developing-today/code/issues/434
og:image:altFinding PR #431 single-sources the codex-proxy port by changing the openai-codex provider's baseURL in .opencode/opencode.jsonc from the hardcoded http://127.0.0.1:18744/v1 to http://127.0.0.1:{env...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release32e57d5cc2ce6ce92ec6dceb65858344750c27c2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/434#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F434
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F434
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/434
Reloadhttps://github.com/developing-today/code/issues/434
Reloadhttps://github.com/developing-today/code/issues/434
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests146 (146)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/434
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/434
codex-proxy: PR #431's {env:CODEX_PROXY_PORT} baseURL has no fallback — opencode outside a home-manager shell gets an empty porthttps://github.com/developing-today/code/issues/434#top
https://github.com/dezren39
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 20, 2026https://github.com/developing-today/code/issues/434#issue-5947897875
#431https://github.com/developing-today/code/pull/431
#431https://github.com/developing-today/code/pull/431
codex-proxy: single-source the port via CODEX_PROXY_PORT #431https://github.com/developing-today/code/pull/431
codex-proxy: single-source the port via CODEX_PROXY_PORT #431https://github.com/developing-today/code/pull/431
opencode: enable web-search backends + experimental feature flags #430https://github.com/developing-today/code/pull/430
codex-proxy: single-source the port via CODEX_PROXY_PORT #431https://github.com/developing-today/code/pull/431
codex-proxy: single-source the port via CODEX_PROXY_PORT #431https://github.com/developing-today/code/pull/431
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 20, 2026https://github.com/developing-today/code/issues/434#event-33775881038
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/434#issuecomment-6315697815
#437https://github.com/developing-today/code/issues/437
#232https://github.com/developing-today/code/pull/232
developing-today-forks/opencode#232https://github.com/developing-today-forks/opencode/pull/232
#478https://github.com/developing-today/code/pull/478
#438https://github.com/developing-today/code/pull/438
#478https://github.com/developing-today/code/pull/478
#430https://github.com/developing-today/code/pull/430
#431https://github.com/developing-today/code/pull/431
#438https://github.com/developing-today/code/pull/438
#232https://github.com/developing-today/code/pull/232
#431https://github.com/developing-today/code/pull/431
dezren39https://github.com/dezren39
on Oct 21, 2026https://github.com/developing-today/code/issues/434#event-33844097402
feat(core): support {env:VAR:-fallback} defaults in config substituti…https://github.com/developing-today-forks/opencode/commit/dc72b96651fcceb46fc5da3b78d2f29db300d53d
dc72b96https://github.com/developing-today-forks/opencode/commit/dc72b96651fcceb46fc5da3b78d2f29db300d53d
Merge pull request #478 from developing-today/sweep/434-env-fallbackhttps://github.com/developing-today/code/commit/71538745d1b0478525fc631faef67c740c6c5d38
#478https://github.com/developing-today/code/pull/478
7153874https://github.com/developing-today/code/commit/71538745d1b0478525fc631faef67c740c6c5d38
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
2a23007https://github.com/developing-today/code/commit/2a230077859d3e4eec5167385a6c7e86ae3614f0
on Oct 23, 2026https://github.com/developing-today/code/issues/434#event-34006365450
dezren39https://github.com/dezren39
on Oct 25, 2026https://github.com/developing-today/code/issues/434#event-34208090360
config(opencode): keep {env} port templates (port-fallback guard); co…https://github.com/developing-today/code/commit/32ad937759bb2813c10c2e3e1bfdcb4791106b01
32ad937https://github.com/developing-today/code/commit/32ad937759bb2813c10c2e3e1bfdcb4791106b01
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/434
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/434
dezren39https://github.com/dezren39
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.