mirror of
https://github.com/NeuralNomadsAI/CodeNomad.git
synced 2026-07-10 00:14:27 +00:00
Fixes #321 ## Summary - expose OPENCODE_SERVER_BASE_URL in the spawned OpenCode workspace environment - point it at the current workspace's stable CodeNomad proxy URL - propagate the new variable through WSL launches alongside the existing auth env vars ## Why Tools and plugins already receive the auth credentials needed to call the current workspace instance, but they still need an extra lookup to discover the correct URL. The proxy URL is already known before runtime startup, so exposing it directly removes that lookup without changing OpenCode's port selection flow. ## What Changed - packages/server/src/workspaces/opencode-auth.ts: added the OPENCODE_SERVER_BASE_URL env var constant - packages/server/src/workspaces/manager.ts: injects OPENCODE_SERVER_BASE_URL into the workspace runtime environment using CODENOMAD_BASE_URL + proxyPath - packages/server/src/workspaces/__tests__/spawn.test.ts: updates WSL env propagation coverage for the new variable ## Validation - npx tsx --test "packages/server/src/workspaces/__tests__/spawn.test.ts" |
||
|---|---|---|
| .. | ||
| cloudflare | ||
| electron-app | ||
| opencode-config | ||
| server | ||
| tauri-app | ||
| ui | ||