Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

fix: opencode is not on PATH on Windows (#2183)

Adam Mansfield1eb6fcea84a8
diff --git a/apps/server/src/provider/opencodeRuntime.ts b/apps/server/src/provider/opencodeRuntime.ts
index 3269c712a..c3e973e7e 100644
--- a/apps/server/src/provider/opencodeRuntime.ts
+++ b/apps/server/src/provider/opencodeRuntime.ts
@@ -334,6 +334,7 @@ const makeOpenCodeRuntime = Effect.gen(function* () {
.spawn(
ChildProcess.make(input.binaryPath, args, {
detached: process.platform !== "win32",
+ shell: process.platform === "win32",
env: {
...(input.environment ?? process.env),
OPENCODE_CONFIG_CONTENT: JSON.stringify({}),