From f3cb356b2bf0a108dfd9e41a5bf9a886e8c3c9f6 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 30 Mar 2026 17:20:18 +0300 Subject: [PATCH] chore(llm): allow editing all string note types --- apps/server/src/services/llm/tools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/services/llm/tools.ts b/apps/server/src/services/llm/tools.ts index d4ab67e821..bbdbf6ec3a 100644 --- a/apps/server/src/services/llm/tools.ts +++ b/apps/server/src/services/llm/tools.ts @@ -107,7 +107,7 @@ export const updateNoteContent = tool({ if (note.isProtected) { return { error: "Note is protected and cannot be modified" }; } - if (note.type !== "text" && note.type !== "code") { + if (!note.hasStringContent()) { return { error: `Cannot update content for note type: ${note.type}` }; }