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>
This commit is contained in:
Tomas Adamek
2026-04-09 20:50:59 +02:00
committed by GitHub
parent 5938fa6ffb
commit 49476d72fc

View File

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