fix: use 'opencode run' instead of bare prompt for OpenCode client
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user