fix: treat quick verify timing as non-blocking
This commit is contained in:
@@ -3520,6 +3520,10 @@ function waitForQuickVerifyPromptTurn(state: SentinelCicdState, observerId: stri
|
||||
};
|
||||
}
|
||||
if (payload.ok === true) return { ok: true, ...terminalPayload };
|
||||
if (isQuickVerifyTurnSuccessful(status)) {
|
||||
if (payload?.finalResponseEmpty !== true) return { ok: true, ...terminalPayload };
|
||||
continue;
|
||||
}
|
||||
if (isQuickVerifyTurnTerminal(status)) {
|
||||
return {
|
||||
ok: false,
|
||||
@@ -3644,7 +3648,7 @@ function quickVerifyPromptWaitScript(stateDir: string, promptIndex: number, time
|
||||
" while (Date.now() - startedAt <= timeoutMs) {",
|
||||
" const row = rowFor();",
|
||||
" observations.push(row);",
|
||||
" if (successful(row.status) && row.composerReadyForTurn === true) { console.log(JSON.stringify({ ok: true, ...row, observations: observations.slice(-6), elapsedMs: Date.now() - startedAt, valuesRedacted: true })); return; }",
|
||||
" if (successful(row.status) && row.finalResponseEmpty !== true) { console.log(JSON.stringify({ ok: true, ...row, observations: observations.slice(-6), elapsedMs: Date.now() - startedAt, valuesRedacted: true })); return; }",
|
||||
" if (!successful(row.status) && terminal(row.status)) { console.log(JSON.stringify({ ok: false, failure: 'observe-turn-terminal-non-success', ...row, observations: observations.slice(-6), elapsedMs: Date.now() - startedAt, valuesRedacted: true })); return; }",
|
||||
" await sleep(Math.min(pollMs, Math.max(0, timeoutMs - (Date.now() - startedAt))));",
|
||||
" }",
|
||||
|
||||
Reference in New Issue
Block a user