diff --git a/src/components/WorkFlow/node.tsx b/src/components/WorkFlow/node.tsx
index 512e836f..3af1e022 100644
--- a/src/components/WorkFlow/node.tsx
+++ b/src/components/WorkFlow/node.tsx
@@ -332,7 +332,7 @@ export function Node({ id, data }: NodeProps) {
? `${agentMap[data.type]?.borderColor} z-50`
: "border-worker-border-default z-10"
} transition-all duration-300 ease-in-out ${
- data.agent?.tasks.length === 0 && "opacity-30"
+ (data.agent?.tasks?.length ?? 0) === 0 && "opacity-30"
}`}
>
)}
- {data.type === "document_agent" && (
-
-
-
+ {data.type === "document_agent" &&
+ data?.agent?.tasks &&
+ data.agent.tasks.length > 0 && (
+
-
- )}
+ )}
{data.type === "developer_agent" &&
data?.agent?.tasks &&
diff --git a/utils/__pycache__/__init__.cpython-310.pyc b/utils/__pycache__/__init__.cpython-310.pyc
index 57ecb1ad..10d1d4a6 100644
Binary files a/utils/__pycache__/__init__.cpython-310.pyc and b/utils/__pycache__/__init__.cpython-310.pyc differ
diff --git a/utils/__pycache__/traceroot_wrapper.cpython-310.pyc b/utils/__pycache__/traceroot_wrapper.cpython-310.pyc
index b8d9747f..d695ee21 100644
Binary files a/utils/__pycache__/traceroot_wrapper.cpython-310.pyc and b/utils/__pycache__/traceroot_wrapper.cpython-310.pyc differ