From 49476d72fcd0cb385c331908f8c8f9156a2d4941 Mon Sep 17 00:00:00 2001 From: Tomas Adamek <50672285+Kureii@users.noreply.github.com> Date: Thu, 9 Apr 2026 20:50:59 +0200 Subject: [PATCH] Update apps/server/src/services/llm/tools/hierarchy_tools.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- apps/server/src/services/llm/tools/hierarchy_tools.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/server/src/services/llm/tools/hierarchy_tools.ts b/apps/server/src/services/llm/tools/hierarchy_tools.ts index e111cb5687..b668b2380b 100644 --- a/apps/server/src/services/llm/tools/hierarchy_tools.ts +++ b/apps/server/src/services/llm/tools/hierarchy_tools.ts @@ -120,6 +120,9 @@ export const hierarchyTools = defineTools({ if (!targetParent.isContentAvailable()) { return { error: "Cannot move note to a protected parent" }; } + if (!targetParent.isContentAvailable()) { + return { error: "Cannot move note to a protected parent" }; + } // Use the first (primary) parent branch for the move const branches = note.getParentBranches();