fix(coding): restore sending after queued messages settle
This commit is contained in:
@@ -832,13 +832,18 @@ export function createCodingConversationStore(
|
||||
const requests = state.requestsByConversationId[input.conversationId] ?? {};
|
||||
const current = requests[clientRequestId];
|
||||
if (!current) return state;
|
||||
const nextRequests = { ...requests };
|
||||
// Queued messages are projected by the authoritative queue; only a
|
||||
// prompt has an optimistic node awaiting clientRequestId reconciliation.
|
||||
if (current.mode === 'prompt') {
|
||||
nextRequests[clientRequestId] = { ...current, status: 'accepted' };
|
||||
} else {
|
||||
delete nextRequests[clientRequestId];
|
||||
}
|
||||
return {
|
||||
requestsByConversationId: {
|
||||
...state.requestsByConversationId,
|
||||
[input.conversationId]: {
|
||||
...requests,
|
||||
[clientRequestId]: { ...current, status: 'accepted' },
|
||||
},
|
||||
[input.conversationId]: nextRequests,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user