Skip to content

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

Merge conversations-ui-cleanup into legacy-chat-thread-removal

Steven Enamakeldde5fbb68e34
diff --cc app/src/store/chatRuntimeSlice.ts
index 2aba23e0b3,aaa174940b..6aad69278d
--- a/app/src/store/chatRuntimeSlice.ts
+++ b/app/src/store/chatRuntimeSlice.ts
@@@ -1347,9 -1418,28 +1351,15 @@@ const chatRuntimeSlice = createSlice(
round: number;
delta: string;
channel: 'content' | 'thinking';
+ /**
+ * Epoch ms the delta arrived, stamped by the dispatcher so the
+ * reducer stays pure. Timestamps the thinking block for the
+ * reasoning panel's "Thought for Ns"; omitted deltas carry no timing.
+ */
+ at?: number;
}>
) => {
- const { threadId, requestId, round, delta, channel } = action.payload;
+ const { threadId, requestId, round, delta, channel, at } = action.payload;
- // A parallel (forked) turn streams into its own lane so it doesn't clobber
- // the primary turn's stream on the same thread.
- if (state.parallelRequestThreads[requestId] !== undefined) {
- const lane = (state.parallelStreamsByThread[threadId] ??= {});
- const prev = lane[requestId];
- lane[requestId] = {
- requestId,
- content: channel === 'content' ? `${prev?.content ?? ''}${delta}` : (prev?.content ?? ''),
- thinking:
- channel === 'thinking' ? `${prev?.thinking ?? ''}${delta}` : (prev?.thinking ?? ''),
- };
- return;
- }
const existing = state.streamingAssistantByThread[threadId];
const sameTurn = existing != null && existing.requestId === requestId;
const carryContent = sameTurn ? existing.content : '';