Skip to content
Open
Show file tree
Hide file tree
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 @@ -764,6 +764,7 @@ export function MothershipChat({
onCancelEdit={onCancelQueueEdit}
/>
<UserInput
key={draftScopeKey}
ref={userInputRef}
onSubmit={onSubmit}
isSending={isStreamActive}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const Panel = memo(function Panel() {
const router = useRouter()
const params = useParams()
const workspaceId = params.workspaceId as string
const routeWorkflowId = params.workflowId as string | undefined

const posthog = usePostHog()
const posthogRef = useRef(posthog)
Expand Down Expand Up @@ -396,6 +397,10 @@ export const Panel = memo(function Panel() {
},
})
)
const copilotDraftWorkflowId = activeWorkflowId ?? routeWorkflowId
const copilotDraftScopeKey = copilotDraftWorkflowId
? `${workspaceId}:workflow-copilot:${copilotDraftWorkflowId}`
: undefined

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