From ecdd6068c5055f420ac2449753849de5d7cb28bf Mon Sep 17 00:00:00 2001 From: Harrison Weinstock Date: Thu, 14 May 2026 21:42:39 +0000 Subject: [PATCH] fix: restore requireProject() guard for --harness-arn in invoke command The merge conflict resolution in cac76c18 dropped the conditional guard, making requireProject() unconditional. This broke 'invoke --harness-arn' outside a project directory, contradicting the documented behavior ('no project required'). --- src/cli/commands/invoke/command.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/commands/invoke/command.tsx b/src/cli/commands/invoke/command.tsx index 5fe54e3c9..4f68b7467 100644 --- a/src/cli/commands/invoke/command.tsx +++ b/src/cli/commands/invoke/command.tsx @@ -226,7 +226,9 @@ export const registerInvoke = (program: Command) => { } ) => { try { - requireProject(); + if (!cliOptions.harnessArn) { + requireProject(); + } // Load config once for protocol resolution and to pass into handleInvokeCLI let invokeContext: InvokeContext | undefined;