Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(answer/operation): feedback status in the logs (#6716)

Kevin9703427f48be6b1f
diff --git a/web/app/components/base/chat/chat/answer/operation.tsx b/web/app/components/base/chat/chat/answer/operation.tsx
index 3d52477d0bb..8ec5c0f3b23 100644
--- a/web/app/components/base/chat/chat/answer/operation.tsx
+++ b/web/app/components/base/chat/chat/answer/operation.tsx
@@ -53,10 +53,11 @@ const Operation: FC<OperationProps> = ({
content: messageContent,
annotation,
feedback,
+ adminFeedback,
agent_thoughts,
} = item
const hasAnnotation = !!annotation?.id
- const [localFeedback, setLocalFeedback] = useState(feedback)
+ const [localFeedback, setLocalFeedback] = useState(config?.supportAnnotation ? adminFeedback : feedback)
const content = useMemo(() => {
if (agent_thoughts?.length)