Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const Panel = memo(function Panel() {
const router = useRouter()
const params = useParams()
const workspaceId = params.workspaceId as string
const workflowId = params.workflowId as string

const posthog = usePostHog()
const posthogRef = useRef(posthog)
Expand Down Expand Up @@ -378,6 +379,9 @@ export const Panel = memo(function Panel() {
})
)

const copilotDraftScopeKey =
`${workspaceId}:copilot:${workflowId}:${copilotChatId ?? copilotResolvedChatId ?? 'new'}`

const handleCopilotNewChat = useCallback(() => {
if (!activeWorkflowId || !workspaceId) return
requestJson(createWorkflowCopilotChatContract, {
Expand Down Expand Up @@ -898,6 +902,7 @@ export const Panel = memo(function Panel() {
onCancelQueueEdit={copilotCancelQueueEdit}
userId={session?.user?.id}
chatId={copilotResolvedChatId}
draftScopeKey={copilotDraftScopeKey}
layout='copilot-view'
/>
</div>
Expand Down
Loading