Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions packages/core/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1195,8 +1195,14 @@ export class MemoryStore {
opType: "upsert",
deviceId: this.deviceId,
});
} catch {
// Non-fatal
} catch (err) {
// Non-fatal for the visibility write itself, but surface
// the failure: peers won't learn about this change until
// the next reconciliation pass, and a silent swallow
// hides whatever broke the replication path.
console.warn(
`[codemem] updateMemoryVisibility: replication-op emit failed for memory ${memoryId}: ${err instanceof Error ? err.message : String(err)}`,
);
}

const updated = this.get(memoryId);
Expand Down Expand Up @@ -1286,8 +1292,10 @@ export class MemoryStore {
opType: "upsert",
deviceId: this.deviceId,
});
} catch {
// Non-fatal — same pattern as updateMemoryVisibility.
} catch (err) {
console.warn(
`[codemem] updateMemoryApplicability: replication-op emit failed for memory ${memoryId}: ${err instanceof Error ? err.message : String(err)}`,
);
}

const updated = this.get(memoryId);
Expand Down