codex-plugin-cc/plugins/codex/scripts
Bhuvanesh Sridharan dd335cbc76
fix: inherit process.env in app-server spawn when no explicit env is provided (#159)
`SpawnedCodexAppServerClient.initialize()` passes `this.options.env` to
`spawn()`, but no caller ever sets `env` in options. In Node.js, passing
`undefined` for `env` gives the child process **no** environment variables,
breaking any model provider that relies on env vars (e.g. DATABRICKS_TOKEN).

Fall back to `process.env` when `this.options.env` is not set, matching the
existing pattern in `broker-lifecycle.mjs` and `codex-companion.mjs`.

Co-authored-by: Isaac

Co-authored-by: Bhuvanesh Sridharan <bhuvanesh.sridharan@databricks.com>
2026-04-07 20:07:29 -07:00
..
lib fix: inherit process.env in app-server spawn when no explicit env is provided (#159) 2026-04-07 20:07:29 -07:00
app-server-broker.mjs Initial commit 2026-03-30 09:42:33 -07:00
codex-companion.mjs Use app-server auth status for Codex readiness (#177) 2026-04-07 20:06:22 -07:00
session-lifecycle-hook.mjs Initial commit 2026-03-30 09:42:33 -07:00
stop-review-gate-hook.mjs Use app-server auth status for Codex readiness (#177) 2026-04-07 20:06:22 -07:00