fix(desktop): respect proxy environment (#25846)

This commit is contained in:
Luke Parker
2026-05-05 20:34:28 +10:00
committed by GitHub
parent bb9b81aa37
commit 465c83cf82
2 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -30,8 +30,9 @@ export function setWslConfig(config: WslConfig) {
getStore().set(WSL_ENABLED_KEY, config.enabled)
}
export async function spawnLocalServer(hostname: string, port: number, password: string) {
export async function spawnLocalServer(hostname: string, port: number, password: string, configureEnv?: () => void) {
prepareServerEnv(password)
configureEnv?.()
const { Log, Server } = await import("virtual:opencode-server")
await Log.init({ level: "WARN" })
const listener = await Server.listen({