Skip to content

Commit 37f733d

Browse files
sirtimidclaude
andcommitted
fix(cli): reject zero and negative --timeout values
Replace NaN-only guard with `> 0` which also rejects zero, negative, and NaN values — all of which cause immediate spurious timeouts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d591af5 commit 37f733d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ const yargsInstance = yargs(hideBin(process.argv))
275275
await handleDaemonExec(
276276
execArgs,
277277
socketPath,
278-
typeof args.timeout === 'number' && !Number.isNaN(args.timeout)
278+
typeof args.timeout === 'number' && args.timeout > 0
279279
? { timeoutMs: args.timeout * 1000 }
280280
: {},
281281
);

0 commit comments

Comments
 (0)