chore(llm): allow editing all string note types

This commit is contained in:
Elian Doran
2026-03-30 17:20:18 +03:00
parent 8ea1b7afba
commit f3cb356b2b

View File

@@ -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}` };
}