From cf95d9ac0d7359a5b668ef583a2dab91555c6991 Mon Sep 17 00:00:00 2001
From: euvre <93761161+euvre@users.noreply.github.com>
Date: Mon, 20 Jul 2026 19:14:49 +0800
Subject: [PATCH] fix(web): avoid flashing empty state when returning to agent
list (#17118)
---
web/src/pages/agents/index.tsx | 3 +++
1 file changed, 3 insertions(+)
diff --git a/web/src/pages/agents/index.tsx b/web/src/pages/agents/index.tsx
index 49d153a130..9bc8b9454d 100644
--- a/web/src/pages/agents/index.tsx
+++ b/web/src/pages/agents/index.tsx
@@ -30,6 +30,7 @@ import { useRenameAgent } from './use-rename-agent';
export default function Agents() {
const {
data,
+ loading: listLoading,
pagination,
setPagination,
searchString,
@@ -170,6 +171,8 @@ export default function Agents() {
)}
+ ) : listLoading ? (
+
) : (