Radim Semerák
Radim Semerák
When I cleared my context window in a Claude Code session via `/clear`, the hot reload in the agentmemory viewer on `localhost:3113` failed to render with `Dashboard failed to load:...
## Summary `HandleFetch` in `pkg/mcp/tools/fetch.go:18` passes `input.Anchor` straight to `Engine.Fetch` without any guard. When the LLM caller forgets the field, `Engine.Fetch("")` produces a generic GetNode-not-found error that obscures the actual...
## Summary `HandleWrite` in `pkg/mcp/tools/write.go:39` discards the `GetNode` error entirely: ```go existing, _ := d.Store.GetNode(ctx, nodeID) ``` The intent is clearly "if the anchor is unknown, fall into the create...
## Summary `HandleDelta` in `pkg/mcp/tools/delta.go:12` accepts `since_snapshot=0` as the documented "all changes" sentinel, then streams every matching diff row with no `LIMIT`. On a vault with many snapshots this can...
## Summary Follow-up to #244 (which fixed `MemoryWrite`/`MemorySummarize` via #238, then `MemoryCompile`/`MemoryForget`). One more snapshot-emitting path is still on a **content-only** cursor hash that does **not** fold the parent snapshot...
## Summary Follow-up to #238. That fix routed `MemoryWrite`/`MemorySummarize` (via `emitNodeChange`) through `diff.CursorHashForChange`, which folds the monotonic parent snapshot id and so is unique per snapshot by construction. Two snapshot-emitting...
## Summary `HandleWrite` → `emitNodeChange` ([pkg/mcp/tools/deps.go:116](https://github.com/radimsem/remindb/blob/0352784e/pkg/mcp/tools/deps.go#L116)) derives the snapshot's `cursor_hash` from `diff.CursorHash(roots)` where `roots` is the single mutated node. Because `CursorHashFlat` hashes only `id:content_hash` pairs ([pkg/diff/hash.go:16](https://github.com/radimsem/remindb/blob/0352784e/pkg/diff/hash.go#L16)), writing the same `(anchor,...
## Summary `canonicalizePath` in [pkg/mcp/tools/compile.go:63-68](https://github.com/radimsem/remindb/blob/0352784e/pkg/mcp/tools/compile.go#L63-L68) returns its input unchanged when `sourceDir == \"\"`: ```go func canonicalizePath(input, sourceDir string) (string, error) { if sourceDir == \"\" || input == \"\" {...
## Summary `Redactor.Scrub` ([internal/redaction/redact.go:73-82](https://github.com/radimsem/remindb/blob/0352784e/internal/redaction/redact.go#L73-L82)) greedily accepts hits by start position and skips any whose `Start < lastEnd`. It does **not** take the union of overlapping intervals — so when match...
## Summary `HandleForget` in `pkg/mcp/tools/forget.go:23` accepts an empty `NodeID`, runs through `ParseDeleteMode`, locks `OpMu`, then calls `GetNode("")` which returns `sql.ErrNoRows`. The handler then surfaces `"node_id not found: "` (with the...