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
fix(aui): handle missing conversation in run queue events
Steven Enamakel3d675122dd20
diff --git a/app/src/features/conversations/aui/useRunQueueEvents.ts b/app/src/features/conversations/aui/useRunQueueEvents.tsindex 011bf77aec..410b9525a8 100644--- a/app/src/features/conversations/aui/useRunQueueEvents.ts+++ b/app/src/features/conversations/aui/useRunQueueEvents.ts@@ -1 +1,26 @@-export function useRunQueueEvents(_enabled: boolean): void {}+/**+ * Mirror the core's `queue_item_*` socket events into `queueSlice`, which the+ * composer's `queue` adapter reads. Mounted once, by `ChatRuntimeProvider`,+ * while the socket is connected: events are keyed by thread, so every thread's+ * queue stays current whichever one is on screen.+ */+import { useEffect } from 'react';++import { subscribeQueueEvents } from '../../../services/chatService';+import { useAppDispatch } from '../../../store/hooks';+import { queueItemDelivered, queueItemQueued, queueItemRemoved } from '../../../store/queueSlice';++export function useRunQueueEvents(enabled: boolean): void {+ const dispatch = useAppDispatch();++ useEffect(() => {+ if (!enabled) return;+ return subscribeQueueEvents({+ onQueued: e => dispatch(queueItemQueued({ threadId: e.thread_id, item: e.queue_item })),+ onDelivered: e =>+ dispatch(queueItemDelivered({ threadId: e.thread_id, itemId: e.queue_item.id })),+ onRemoved: e =>+ dispatch(queueItemRemoved({ threadId: e.thread_id, itemId: e.queue_item.id })),+ });+ }, [dispatch, enabled]);+}