From 089072432e7cccb289c722fa279574cb9a7fc90e Mon Sep 17 00:00:00 2001 From: StyleZhang Date: Tue, 19 Mar 2024 19:46:14 +0800 Subject: [PATCH] chat log --- .../workflow/panel/debug-and-preview/chat-wrapper.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/panel/debug-and-preview/chat-wrapper.tsx b/web/app/components/workflow/panel/debug-and-preview/chat-wrapper.tsx index 642ef10d09..c565d9b9c0 100644 --- a/web/app/components/workflow/panel/debug-and-preview/chat-wrapper.tsx +++ b/web/app/components/workflow/panel/debug-and-preview/chat-wrapper.tsx @@ -33,6 +33,7 @@ const ChatWrapper = forwardRef((_, ref) => { const workflowStore = useWorkflowStore() const featuresStore = useFeaturesStore() const inputs = useStore(s => s.inputs) + const workflowRunId = useStore(s => s.workflowRunId) const { handleStopRun } = useWorkflowRun() const features = featuresStore!.getState().features @@ -95,7 +96,7 @@ const ChatWrapper = forwardRef((_, ref) => { return ( ({ ...item, workflow_run_id: workflowRunId }))} isResponding={isResponding} chatContainerclassName='px-4' chatContainerInnerClassName='pt-6' @@ -105,6 +106,7 @@ const ChatWrapper = forwardRef((_, ref) => { onStopResponding={doStop} chatNode={} suggestedQuestions={suggestedQuestions} + showPromptLog /> ) })