Skip to content

Commit 5b6a981

Browse files
author
Sim Pi Agent
committed
Pi: You are the senior engineer who opened PR #6020 on simstudioai/sim (...
1 parent cb3611b commit 5b6a981

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)