From 4c1702fd1e3d3f33e76b85ac7412b57a8ff1a12e Mon Sep 17 00:00:00 2001 From: Elia Pellegrino Date: Fri, 20 Mar 2026 00:30:35 +0100 Subject: [PATCH] fix: add prt prefix to Part IDs for OpenCode 1.2.25+ compatibility - Part IDs must start with prt prefix in OpenCode 1.2.25+ - This fixes ZodError validation failures in the TUI - Changed supermemory-nudge to prt-supermemory-nudge - Changed supermemory-context to prt-supermemory-context Fixes #29 --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7a5a441..8814186 100644 --- a/src/index.ts +++ b/src/index.ts @@ -112,7 +112,7 @@ export const SupermemoryPlugin: Plugin = async (ctx: PluginInput) => { if (detectMemoryKeyword(userMessage)) { log("chat.message: memory keyword detected"); const nudgePart: Part = { - id: `supermemory-nudge-${Date.now()}`, + id: `prt-supermemory-nudge-${Date.now()}`, sessionID: input.sessionID, messageID: output.message.id, type: "text", @@ -157,7 +157,7 @@ export const SupermemoryPlugin: Plugin = async (ctx: PluginInput) => { if (memoryContext) { const contextPart: Part = { - id: `supermemory-context-${Date.now()}`, + id: `prt-supermemory-context-${Date.now()}`, sessionID: input.sessionID, messageID: output.message.id, type: "text",