fix(cli): avoid AppRuntime re-entry for network options (#26052)

This commit is contained in:
Kit Langton
2026-05-06 11:02:08 -04:00
committed by GitHub
parent 889f979c0b
commit 63a175b50d
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export const ServeCommand = effectCmd({
if (!Flag.OPENCODE_SERVER_PASSWORD) {
console.log("Warning: OPENCODE_SERVER_PASSWORD is not set; server is unsecured.")
}
const opts = yield* Effect.promise(() => resolveNetworkOptions(args))
const opts = yield* resolveNetworkOptions(args)
const server = yield* Effect.promise(() => Server.listen(opts))
console.log(`opencode server listening on http://${server.hostname}:${server.port}`)