Skip to content

Commit 544a855

Browse files
committed
fix(mothership): hand a withdrawn first send's effort pick back to the new-chat composer
1 parent 5680a0b commit 544a855

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/home/hooks

‎apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3542,6 +3542,9 @@ export function useChat(
35423542
}
35433543

35443544
const rollbackOptimisticSend = () => {
3545+
// A withdrawn first send hands its pick back to the new-chat composer for the retry.
3546+
if (!requestChatId && effortChoice)
3547+
useMothershipEffortStore.getState().setNewChatEffort(effortChoice)
35453548
if (requestChatId) {
35463549
upsertChatHistory(requestChatId, (current) => ({
35473550
...current,

0 commit comments

Comments
 (0)