Repository navigation
fix(memory): search by filenames and paths - #104449
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 03d2db14cb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| dropMemoryPathFtsTriggers, | ||
| ensureDir, | ||
| ensureMemoryIndexSchema, | ||
| ensureMemoryPathFtsTriggers, |
There was a problem hiding this comment.
Commit the SDK API baseline hash
These added exports intentionally enlarge the public plugin-sdk/memory-core-host-engine-storage API, but the diff only raises the surface-count budgets. The repo's plugin-sdk:api:check path compares the generated API baseline hash and fails with instructions to run pnpm plugin-sdk:api:gen when public SDK exports change; because docs/.generated/plugin-sdk-api-baseline.sha256 is unchanged in this commit, the plugin-SDK changed lane will reject this API addition until the updated hash is committed.
Useful? React with 👍 / 👎.
03d2db1 to
6c415c4
Compare
|
Codex review: needs real behavior proof before merge. Reviewed July 11, 2026, 1:47 PM ET / 17:47 UTC. Summary PR surface: Source +1167, Tests +2907, Docs +9, Generated +2, Other 0. Total +4085 across 25 files. Reproducibility: yes. The canonical report and current body-only FTS implementation establish that exact filename or date-stem queries can miss the matching indexed source. Review metrics: 2 noteworthy metrics.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep the separate per-source path index, remove the release-owned changelog entry, then attach exact integrated-head installed CLI and version-1-to-version-2 upgrade evidence before maintainer landing. Do we have a high-confidence way to reproduce the issue? Yes. The canonical report and current body-only FTS implementation establish that exact filename or date-stem queries can miss the matching indexed source. Is this the best way to solve the issue? Yes. A one-row-per-source path index is narrower and more maintainable than injecting paths into every chunk because it preserves existing content BM25, snippets, embeddings, and cache identity. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 49ff54e63af5. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +1167, Tests +2907, Docs +9, Generated +2, Other 0. Total +4085 across 25 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (11 earlier review cycles; latest 8 shown)
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 39f09a7eab
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -29,6 +29,7 @@ Docs: https://docs.openclaw.ai | |||
| ### Fixes | |||
|
|
|||
| - **Gateway service audit:** treat POSIX shell `-c` wrappers as opaque for the gateway-subcommand check, avoiding false missing-command warnings for shell-wrapped macOS LaunchAgents without parsing inner commands or ports. Fixes #81751. (#81778) Thanks @liaoandi. | |||
| - **Memory filename search:** index paths separately from chunk bodies so exact full-path, basename, and stem queries rank the intended memory file first without changing body BM25 scores, snippets, or embeddings. (#96052, #94102) Thanks @Pick-cat. | |||
There was a problem hiding this comment.
Remove the normal-fix changelog entry
This is a normal memory fix, but it adds a hand-written CHANGELOG.md entry. The root AGENTS.md says CHANGELOG.md is release-only and that normal PR/direct-fix release-note context belongs in the PR body, squash message, or direct commit because release generation owns this file. Keeping this line can conflict with the generated release changelog, so move the note out of CHANGELOG.md.
Useful? React with 👍 / 👎.
a5c3c8d to
e681646
Compare
df9d2ce to
4b33199
Compare
6d14dc3 to
b769964
Compare
Co-authored-by: Pick-cat <[email protected]>
|
Land-ready proof for exact head
Known proof gaps: none for the changed behavior. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
Closes #94102
Maintainer-owned replacement for #96052. This keeps @Pick-cat's implementation as the credited base while allowing the reviewed tree to use current
mainancestry; the contributor fork's verified web-editor path could update its tree but could not rewrite its stale ancestry.What Problem This Solves
Fixes an issue where memory search would miss relevant notes when users searched for a filename or path term that was absent from the note body.
Why This Change Was Made
Indexes normalized paths in a separate one-row-per-source FTS table, preserving the existing body index, BM25 scores, snippets, and embeddings. Exact full-path, basename, and stem matches receive deterministic precedence; partial Unicode path matches, multi-term fallback, source filters, atomic shadow-index publication, and temporal/MMR ranking retain their existing owner boundaries.
User Impact
Users can find memories by full path, filename, stem, or partial Unicode path text without polluting body relevance. Existing content and semantic search behavior remains unchanged when paths do not match, and disabling FTS still removes all FTS-owned tables.
Evidence
daea62fb242784c5f73f53b8d9238ba57dab4a96; GitHub-verified, based directly on96f0983a85b5a7798d35e97d8f530fed9b567929, and tree-identical to the reviewed local branch.run_297dcc97f02apassed 237 focused SDK, schema, migration, ranking, and tool tests; hosted CI run29161927119completed with 72 pass, 27 intentional skips, and 0 failures.run_2eda117a0eb1built and validated the tarball, installed it into an isolated prefix, passed 8/8 JSON/human search assertions (including exact/partial Unicode and a negative control), and passed 2/2 rename/reindex assertions.