feat: queue countdown, hold on stop, reply when blocked

Co-Authored-By: Ovis Fast (Claude) <[email protected]>
This commit is contained in:
FactorandOvis Fast committed 2026-11-19 11:22:30 +01:00
1 parent 0558449439
commit 7ec35215c6
9 files changed
+361 -44

No files matched your search

+7
View File
@@ -125,3 +125,10 @@ test("saveDraft does not overwrite a known created_ms with null", () => {
saveDraft(store, "t2", draft({ text: "x", identity: { created_ms: 7, app: null } }));
assert.equal(loadDraft(store, "t2").identity.created_ms, 7);
});
test("queue roundtrip keeps a countdown entry (restart turns it into held)", () => {
const store = memStore();
const q = [{ id: "1", text: "t", state: "countdown", createdAt: 5, left: 2 }];
saveQueue(store, "a", q);
assert.deepEqual(loadQueue(store, "a"), q);
});