From 415fb1b9ee09928289d0ef84b4bc1a38a02c40b7 Mon Sep 17 00:00:00 2001 From: Lyon <88232613+pikasTech@users.noreply.github.com> Date: Fri, 26 Jun 2026 01:03:39 +0800 Subject: [PATCH] fix: pass sentinel quick verify prompt text (#916) Co-authored-by: Codex --- scripts/src/hwlab-node-web-sentinel-cicd.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/src/hwlab-node-web-sentinel-cicd.ts b/scripts/src/hwlab-node-web-sentinel-cicd.ts index 2c90f801..bede7cd4 100644 --- a/scripts/src/hwlab-node-web-sentinel-cicd.ts +++ b/scripts/src/hwlab-node-web-sentinel-cicd.ts @@ -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, {