Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(store): handle requestId generation in queue slice

Steven Enamakel000400de48b7
diff --git a/app/src/store/queueSlice.ts b/app/src/store/queueSlice.ts
index 98ac680cab..eff8d58f16 100644
--- a/app/src/store/queueSlice.ts
+++ b/app/src/store/queueSlice.ts
@@ -151,11 +151,12 @@ const queueSlice = createSlice({
threadId: string;
message: ThreadMessage;
text: string;
- requestId: string;
+ requestId?: string;
attachments?: ContentPart[];
}>
) => {
- const { threadId, message, text, requestId, attachments = [] } = action.payload;
+ const { threadId, message, text, attachments = [] } = action.payload;
+ const requestId = action.payload.requestId ?? message.id;
const bucket = state.pendingFollowupsByThread[threadId] ?? [];
bucket.push({ message, attachments, requestId, preview: clipQueuePreview(text, attachments) });
state.pendingFollowupsByThread[threadId] = bucket;