diff --git a/packages/core/src/store.ts b/packages/core/src/store.ts index d9f0ea5c..a5aae47c 100644 --- a/packages/core/src/store.ts +++ b/packages/core/src/store.ts @@ -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); @@ -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);