Fix --no-wait flag never working on paseo send

Commander's --no-* pattern sets options.wait = false, not
options.noWait = true. The check was always falsy so every
send waited up to 10 minutes for the agent to finish.
This commit is contained in:
Mohamed Boudra
2026-03-25 18:13:27 +07:00
parent 5567652c6c
commit 939b5c22db
+2 -2
View File
@@ -28,7 +28,7 @@ export const agentSendSchema: OutputSchema<AgentSendResult> = {
};
export interface AgentSendOptions extends CommandOptions {
noWait?: boolean;
wait?: boolean;
image?: string[];
prompt?: string;
promptFile?: string;
@@ -193,7 +193,7 @@ export async function runSendCommand(
await client.sendAgentMessage(agentIdArg, promptInput, { images });
// If --no-wait, return immediately
if (options.noWait) {
if (options.wait === false) {
await client.close();
return {