fix: pass sentinel quick verify prompt text (#916)

Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
Lyon
2026-06-26 01:03:39 +08:00
committed by GitHub
parent 08e6ee575b
commit 415fb1b9ee
+2 -4
View File
@@ -1342,14 +1342,12 @@ function runSentinelQuickVerify(state: SentinelCicdState, reason: string, timeou
return recordQuickVerify(state, quickVerifyTimeoutPayload(state, runId, scenarioId, reason, observerId, steps));
}
const args = ["hwlab", "nodes", "web-probe", "observe", "command", observerId, "--node", state.spec.nodeId, "--lane", state.spec.lane, "--type", type, "--wait-ms", "55000", "--command-timeout-seconds", String(remainingSeconds(deadline, 55))];
let input: string | undefined;
if (type === "selectProvider") args.push("--provider", stringAt(item, "provider"));
if (type === "sendPrompt") {
args.push("--text-stdin");
input = prompts.prompts[promptIndex % prompts.prompts.length] ?? "";
args.push("--text", prompts.prompts[promptIndex % prompts.prompts.length] ?? "");
promptIndex += 1;
}
const commandResult = runChildCli(args, remainingSeconds(deadline, 60), input);
const commandResult = runChildCli(args, remainingSeconds(deadline, 60));
steps.push({ phase: `observe-command-${type}`, ok: commandResult.ok, promptIndex: type === "sendPrompt" ? promptIndex : null, result: commandResult.result });
if (!commandResult.ok) {
return recordQuickVerify(state, {