File tree Expand file tree Collapse file tree
apps/sim/app/workspace/[workspaceId]/components/message-actions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121import { cn } from '@/lib/core/utils/cn'
2222import { useSubmitCopilotFeedback } from '@/hooks/queries/copilot-feedback'
2323import { useForkTask } from '@/hooks/queries/tasks'
24+ import { useFolderStore } from '@/stores/folders/store'
2425
2526const SPECIAL_TAGS = 'thinking|options|usage_upgrade|credential|mothership-error|file'
2627
@@ -154,6 +155,7 @@ export const MessageActions = memo(function MessageActions({
154155 if ( ! chatId || ! messageId || forkTask . isPending ) return
155156 try {
156157 const result = await forkTask . mutateAsync ( { chatId, upToMessageId : messageId } )
158+ useFolderStore . getState ( ) . clearTaskSelection ( )
157159 router . push ( `/workspace/${ params . workspaceId } /task/${ result . id } ` )
158160 } catch {
159161 toast . error ( 'Failed to fork chat' )
You can’t perform that action at this time.
0 commit comments