Skip to content

#1 Persistent memory for AI coding agents based on real-world benchmarks

Merge main into smart-search dependency reference

Rohit Ghumare038b573ef380
diff --cc src/functions/smart-search.ts
index 3b0d6c16,cd16a72e..09581dc9
--- a/src/functions/smart-search.ts
+++ b/src/functions/smart-search.ts
@@@ -17,14 -20,9 +21,10 @@@ import
getFollowupWindowSeconds,
} from "../config.js";
import { logger } from "../logger.js";
+ import { withoutObservationSource } from "./observation-source.js";
import { getCounters } from "../telemetry/setup.js";
+import { memoryToObservation } from "../state/memory-utils.js";
- // #771: smart-search followup-rate diagnostic. Stored per session as
- // the most recent search payload, used to detect whether the next
- // search inside the window had a disjoint result set. sessionId is
- // duplicated into the row so the hourly sweep can delete by it
- // (StateKV.list returns values only).
export interface RecentSearch {
sessionId: string;
query: string;