test(webui): supply empty thread claims in shell bus fixture

This commit is contained in:
jason.woltje committed 2026-10-22 07:17:46 -05:00
1 parent f99c39a3f0
commit 9696d1fcb7
1 file changed
+2 -2
+2 -2
View File
@@ -94,11 +94,11 @@ function board() {
// The four Q1 verbs over fixed rows, or a BusReadError with a chosen code.
function stubBus() {
const rows = { inbox: [], tasks: [], agents: [], trail: [] };
const rows = { inbox: [], tasks: [], agents: [], trail: [], 'thread.claims': [] };
let fail = null, gate = null;
const verb = name => async () => { await gate; if (fail) throw new BusReadError(fail, `fixture ${fail}`); return structuredClone(rows[name]); };
const hold = () => { let go; gate = new Promise(r => { go = r; }); return () => { gate = null; go(); }; };
return { rows, hold, fail: code => { fail = code; }, bus: { inbox: verb('inbox'), tasks: verb('tasks'), agents: verb('agents'), trail: verb('trail') } };
return { rows, hold, fail: code => { fail = code; }, bus: { inbox: verb('inbox'), tasks: verb('tasks'), agents: verb('agents'), trail: verb('trail'), 'thread.claims': verb('thread.claims') } };
}
test('shell in a browser: System default, seeded states, 400px, focus and the Ctrl+K palette', { timeout: 180000 }, async () => {