File tree Expand file tree Collapse file tree
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ export const Panel = memo(function Panel() {
116116 const router = useRouter ( )
117117 const params = useParams ( )
118118 const workspaceId = params . workspaceId as string
119+ const workflowId = params . workflowId as string
119120
120121 const posthog = usePostHog ( )
121122 const posthogRef = useRef ( posthog )
@@ -378,6 +379,9 @@ export const Panel = memo(function Panel() {
378379 } )
379380 )
380381
382+ const copilotDraftScopeKey =
383+ `${ workspaceId } :copilot:${ workflowId } :${ copilotChatId ?? copilotResolvedChatId ?? 'new' } `
384+
381385 const handleCopilotNewChat = useCallback ( ( ) => {
382386 if ( ! activeWorkflowId || ! workspaceId ) return
383387 requestJson ( createWorkflowCopilotChatContract , {
@@ -898,6 +902,7 @@ export const Panel = memo(function Panel() {
898902 onCancelQueueEdit = { copilotCancelQueueEdit }
899903 userId = { session ?. user ?. id }
900904 chatId = { copilotResolvedChatId }
905+ draftScopeKey = { copilotDraftScopeKey }
901906 layout = 'copilot-view'
902907 />
903908 </ div >
You can’t perform that action at this time.
0 commit comments