fix: use 'opencode run' instead of bare prompt for OpenCode client

This commit is contained in:
2026-05-18 19:06:34 -05:00
parent 0e273b59ec
commit d3aa92be0d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import { ClientNotFoundError, ExecError } from "./types.js";
const CLIENT_ARGS: Record<ClientName, (prompt: string) => string[]> = {
codex: (p) => ["exec", p],
claude: (p) => ["-p", p],
opencode: (p) => [p],
opencode: (p) => ["run", p],
};
export interface ExecuteOptions {