Skip to content

Commit 823ff42

Browse files
committed
fix: populate empty memory content in project knowledge list
listMemories API returns null summary by default. Added includeContent param and fallback chain (summary || content || title) so project knowledge entries display actual text instead of blank lines.
1 parent d7cf2b9 commit 823ff42

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const SupermemoryPlugin: Plugin = async (ctx: PluginInput) => {
140140
const projectMemories = {
141141
results: (projectMemoriesList.memories || []).map((m: any) => ({
142142
id: m.id,
143-
memory: m.summary,
143+
memory: m.summary || m.content || m.title || "",
144144
similarity: 1,
145145
title: m.title,
146146
metadata: m.metadata,

src/services/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export class SupermemoryClient {
151151
limit,
152152
order: "desc",
153153
sort: "createdAt",
154+
includeContent: true,
154155
}),
155156
TIMEOUT_MS
156157
);

0 commit comments

Comments
 (0)