Skip to content

Commit f846bca

Browse files
authored
Merge pull request #30 from NevermoreDDD/fix/part-id-prefix
fix: add prt_ prefix to part IDs for OpenCode 1.2.25+ compatibility
2 parents 6bca5df + ac0294f commit f846bca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const SupermemoryPlugin: Plugin = async (ctx: PluginInput) => {
112112
if (detectMemoryKeyword(userMessage)) {
113113
log("chat.message: memory keyword detected");
114114
const nudgePart: Part = {
115-
id: `supermemory-nudge-${Date.now()}`,
115+
id: `prt_supermemory-nudge-${Date.now()}`,
116116
sessionID: input.sessionID,
117117
messageID: output.message.id,
118118
type: "text",
@@ -157,7 +157,7 @@ export const SupermemoryPlugin: Plugin = async (ctx: PluginInput) => {
157157

158158
if (memoryContext) {
159159
const contextPart: Part = {
160-
id: `supermemory-context-${Date.now()}`,
160+
id: `prt_supermemory-context-${Date.now()}`,
161161
sessionID: input.sessionID,
162162
messageID: output.message.id,
163163
type: "text",

0 commit comments

Comments
 (0)