fix(desktop): connect wildcard service through loopback (#43171)

Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
This commit is contained in:
opencode-agent[bot]
2026-08-19 14:39:54 +10:00
committed by GitHub
Unverified
parent daf3f9ed08
commit 33567c5792
@@ -43,14 +43,16 @@ export async function startBackgroundCli(logger: Logger) {
onStart: (reason, previousVersion) => logger.log("v2 CLI background service starting", { reason, previousVersion }),
})
if (service.auth?.type !== "basic") throw new Error("V2 CLI background service did not provide authentication")
const url = new URL(service.url)
if (url.hostname === "0.0.0.0") url.hostname = "127.0.0.1"
logger.log("v2 CLI background service ready", {
username: service.auth.username,
version: cli.version,
...endpoint(service.url),
...endpoint(url.origin),
})
if (isolated && cli.binary) await cleanCliStages(cli.binary, logger)
return {
url: service.url,
url: url.origin,
username: service.auth.username,
password: service.auth.password,
version: cli.version,