Skip to content

The open source coding agent.

TypeScript

Shell: No -l in fallback, for max compatibility (#5452)

Dan Brown6e9833acce1b
diff --git a/packages/opencode/src/session/prompt.ts b/packages/opencode/src/session/prompt.ts
index 7f1b03c94a8..2c36bc6d5c5 100644
--- a/packages/opencode/src/session/prompt.ts
+++ b/packages/opencode/src/session/prompt.ts
@@ -1284,8 +1284,9 @@ export namespace SessionPrompt {
args: ["-NoProfile", "-Command", input.command],
},
// Fallback: any shell that doesn't match those above
+ // - No -l, for max compatibility
"": {
- args: ["-c", "-l", `${input.command}`],
+ args: ["-c", `${input.command}`],
},
}