Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Fix stale kanban hashes preventing re-emission of reappearing records

Cursor Agenta516fd51164e
diff --git a/cli/beacon/internal/clinesession/collect.go b/cli/beacon/internal/clinesession/collect.go
index 0168e759..f4a8aeb6 100644
--- a/cli/beacon/internal/clinesession/collect.go
+++ b/cli/beacon/internal/clinesession/collect.go
@@ -160,6 +160,11 @@ func collectTrace(store *Store, ref TraceRef, state *State, opts CollectOptions,
if ref.Kind == SourceKanban {
minOrder = 0
records, pendingHashes = filterChangedKanbanRecords(records, cursor.KanbanHashes)
+ for order := range cursor.KanbanHashes {
+ if _, ok := pendingHashes[order]; !ok {
+ delete(cursor.KanbanHashes, order)
+ }
+ }
}
mapped := MapTrace(ref, records, MapOptions{MinOrder: minOrder, SkipStarted: cursor.Started})
if len(mapped) == 0 {