The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(queueSlice): add pendingFollowupCompleted test case
Steven Enamakel638cbf91e0d9
diff --git a/app/src/store/queueSlice.test.ts b/app/src/store/queueSlice.test.tsindex 652c9dc33b..dbb72b8619 100644--- a/app/src/store/queueSlice.test.ts+++ b/app/src/store/queueSlice.test.ts@@ -10,6 +10,7 @@ import {import reducer, {clipQueuePreview,pendingFollowupAdded,+ pendingFollowupCompleted,queueItemDelivered,queueItemQueued,queueItemRemoved,@@ -151,13 +152,18 @@ describe('queueSlice — chat runtime lifecycle', () => {);};- it('endInferenceTurn clears the thread queue (its follow-ups are being dispatched)', () => {+ it('keeps pending follow-ups until their own persisted terminal event', () => {let state = reducer(seeded(), beginInferenceTurn({ threadId: 't1' }));state = reducer(state, endInferenceTurn({ threadId: 't1' }));expect(state.itemsByThread.t1).toBeUndefined();- expect(state.pendingFollowupsByThread.t1).toBeUndefined();+ expect(state.pendingFollowupsByThread.t1).toHaveLength(1);expect(state.itemsByThread.t2).toBeDefined();+ state = reducer(+ state,+ pendingFollowupCompleted({ threadId: 't1', requestId: 'm1' })+ );+ expect(state.pendingFollowupsByThread.t1).toBeUndefined();});it('clearRuntimeForThread clears one thread, clearAllChatRuntime clears all', () => {