From 82d6b4acbcf458ebd2084a01851a00b3011f8bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9D=E5=A4=95?= Date: Mon, 27 Apr 2026 15:36:47 +0800 Subject: [PATCH] Fix individual page system nodes 12812679583942839801 (#42) * feat: fix individual page configuration to properly display system nodes - Added `SystemNodeConfig` database table to persist system node config (provider and model). - Updated `AgentLayout` and `WorkerIndividualSettings` to restrict config modifications to only provider and model for system nodes. - Hid delete button for system nodes and removed them from the creation modal dropdown. - Updated Agent API to support querying configured system nodes and persisting setups. Co-authored-by: zhaoxi826 <198742034+zhaoxi826@users.noreply.github.com> * feat: fix individual page configuration to properly display system nodes - Added `SystemNodeConfig` database table to persist system node config (provider and model). - Updated `AgentLayout` and `WorkerIndividualSettings` to restrict config modifications to only provider and model for system nodes. - Hid delete button for system nodes and removed them from the creation modal dropdown. - Updated Agent API to support querying configured system nodes and persisting setups. - Fixed an issue where the table would not render if only system nodes were present (and no custom workers existed). Co-authored-by: zhaoxi826 <198742034+zhaoxi826@users.noreply.github.com> --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: zhaoxi826 <198742034+zhaoxi826@users.noreply.github.com> --- frontend/src/components/Agent/WorkerIndividualSettings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Agent/WorkerIndividualSettings.tsx b/frontend/src/components/Agent/WorkerIndividualSettings.tsx index 352eecf..fce633a 100644 --- a/frontend/src/components/Agent/WorkerIndividualSettings.tsx +++ b/frontend/src/components/Agent/WorkerIndividualSettings.tsx @@ -163,8 +163,8 @@ export function WorkerIndividualSettings() {
{loading ? (
Loading...
- ) : workers.length === 0 ? ( -
No workers found.
+ ) : (workers.length === 0 && systemNodes.length === 0) ? ( +
No individuals found.
) : (