fix: bound sentinel submit action wait

This commit is contained in:
Codex
2026-06-27 04:41:23 +00:00
parent ee784a2934
commit 76978a6160
4 changed files with 18 additions and 3 deletions
+1
View File
@@ -202,6 +202,7 @@ export interface NodeWebProbeObserveOptions {
commandSeverity: string | null;
commandAlternateSessionStrategy: string | null;
commandExpectedSentinelRange: string | null;
commandExpectedActionWaitMs: number | null;
commandRequireComposerReady: boolean;
commandFindingId: string | null;
commandBlocking: boolean | null;
@@ -259,6 +259,7 @@ export function parseNodeWebProbeObserveOptions(
"--severity",
"--alternate-session-strategy",
"--expected-sentinel-range",
"--expected-action-wait-ms",
"--finding-id",
"--source-id",
"--file-ref",
@@ -349,6 +350,11 @@ export function parseNodeWebProbeObserveOptions(
const commandSeverity = optionValue(args, "--severity") ?? null;
const commandAlternateSessionStrategy = optionValue(args, "--alternate-session-strategy") ?? null;
const commandExpectedSentinelRange = optionValue(args, "--expected-sentinel-range") ?? null;
const commandExpectedActionWaitMsRaw = optionValue(args, "--expected-action-wait-ms") ?? null;
const commandExpectedActionWaitMs = commandExpectedActionWaitMsRaw === null ? null : Number(commandExpectedActionWaitMsRaw);
if (commandExpectedActionWaitMs !== null && (!Number.isInteger(commandExpectedActionWaitMs) || commandExpectedActionWaitMs < 1000 || commandExpectedActionWaitMs > 600000)) {
throw new Error("unsafe web-probe observe --expected-action-wait-ms: expected integer 1000-600000");
}
const commandFindingId = optionValue(args, "--finding-id") ?? null;
const commandBlocking = args.includes("--blocking") ? true : args.includes("--non-blocking") ? false : null;
for (const [label, value] of [
@@ -422,6 +428,7 @@ export function parseNodeWebProbeObserveOptions(
commandSeverity,
commandAlternateSessionStrategy,
commandExpectedSentinelRange,
commandExpectedActionWaitMs,
commandRequireComposerReady: args.includes("--require-composer-ready"),
commandFindingId,
commandBlocking,
@@ -1492,6 +1499,7 @@ export function runNodeWebProbeObserveCommand(options: NodeWebProbeObserveOption
severity: options.commandSeverity,
alternateSessionStrategy: options.commandAlternateSessionStrategy,
expectedSentinelRange: options.commandExpectedSentinelRange,
expectedActionWaitMs: options.commandExpectedActionWaitMs,
requireComposerReady: options.commandRequireComposerReady,
findingId: options.commandFindingId,
blocking: options.commandBlocking,