Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Queued-message test: ask Stop again when it answers still stopping

Niko12215e7a965ac18d
diff --git a/apps/host/tests/agent-plan-run.test.mjs b/apps/host/tests/agent-plan-run.test.mjs
index 29f176705..4a40a6c96 100644
--- a/apps/host/tests/agent-plan-run.test.mjs
+++ b/apps/host/tests/agent-plan-run.test.mjs
@@ -102,7 +102,8 @@ test('a message typed while a goal without points runs is queued, can be taken b
const back = r.bridge.cancelQueued({ chatId: 'q1', id: b.message.id });
assert.deepEqual(back.queue.map(m => m.text), ['first thing']);
assert.throws(() => r.bridge.cancelQueued({ chatId: 'q1', id: b.message.id }), /already sent or removed/);
- await r.bridge.stop('q1');
+ // Stop may answer 'still stopping' on a busy machine: ask again until the run has ended
+ for (let i = 0; i < 5; i++) { const st = await r.bridge.stop('q1'); if (st.stopped || !r.bridge.isRunning('q1')) break; }
await run;
const rel = out.find(f => f.type === 'queued-release');
assert.deepEqual(rel.messages.map(m => m.text), ['first thing']);