mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-22 23:38:51 +00:00
* fix(memory): await search-sync before returning results to prevent stale index When the gateway process has been running for a while, memory_search returns stale results because startAsyncSearchSync fires off the index sync as a background task (void ... .catch()) without waiting for it to complete. Search results are then read from the old index state. Change startAsyncSearchSync from sync/fire-and-forget to async/await so that the index is synced before search results are returned. This ensures memory_search reflects the current filesystem state, matching the behavior of the CLI command which creates a fresh manager each time. Fixes #52115 * test(memory): prove search waits for dirty sync * test(memory): align search with synchronous sync --------- Co-authored-by: Vincent Koc <25068+vincentkoc@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| src | ||
| api.ts | ||
| cli-metadata.ts | ||
| cli.ts | ||
| doctor-contract-api.test.ts | ||
| doctor-contract-api.ts | ||
| index.test.ts | ||
| index.ts | ||
| manager-runtime.ts | ||
| openclaw.plugin.json | ||
| package.json | ||
| runtime-api.ts | ||
| tsconfig.json | ||