From ddf75df9765b1f78a3f619f0bdcfcc77878947d0 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Sat, 28 Feb 2026 19:21:11 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20change=20circular=20reference=20detecti?= =?UTF-8?q?on=20from=20error=20to=20warning=20=E2=80=94=20loops=20are=20in?= =?UTF-8?q?tentional?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- frontend/src/store/treeEditorStore.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/store/treeEditorStore.ts b/frontend/src/store/treeEditorStore.ts index ce80c783..11c84b70 100644 --- a/frontend/src/store/treeEditorStore.ts +++ b/frontend/src/store/treeEditorStore.ts @@ -802,8 +802,8 @@ export const useTreeEditorStore = create()( if (opt.next_node_id && detectCircularRefs(opt.next_node_id, new Set(visited))) { errors.push({ nodeId: node.id, - message: `Circular reference detected: "${opt.label}" creates a loop`, - severity: 'error' + message: `This path loops back to an earlier node via "${opt.label}"`, + severity: 'warning' }) return true } @@ -814,8 +814,8 @@ export const useTreeEditorStore = create()( if (node.next_node_id && detectCircularRefs(node.next_node_id, new Set(visited))) { errors.push({ nodeId: node.id, - message: `Circular reference detected in node "${node.title || node.id}"`, - severity: 'error' + message: `This node loops back to an earlier node ("${node.title || node.id}")`, + severity: 'warning' }) return true }