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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user