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();