Skip to content

Revert "feat(ai-vault-search): session search query engine over the index (#19750)" - #20023

Merged
Jinwoo-H merged 1 commit into
mainfrom
revert-session-search-pr4
Sep 11, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
revert-session-search-pr4

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 14 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2361 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2361
Prod 21 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​61 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2773 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2712

Reverts #19750, which landed before its prerequisite #19751 (PR 3, indexer lifecycle). PR 4 will be re-landed on top of PR 3.

@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: d0958c31-8271-449d-a38d-9cd3f7bc3d25

📥 Commits

Reviewing files that changed from the base of the PR and between cf7408a and 5176772.

📒 Files selected for processing (35)
  • .gitignore
  • config/scripts/session-search-query-benchmark.ts
  • config/scripts/session-search-scope-benchmark.ts
  • config/scripts/session-search-tool-heavy-corpus.ts
  • docs/reference/agent-session-search-query-tuning.md
  • src/main/ai-vault-search/session-search-engine-test-fixture.ts
  • src/main/ai-vault-search/session-search-engine-types.ts
  • src/main/ai-vault-search/session-search-engine.test.ts
  • src/main/ai-vault-search/session-search-engine.ts
  • src/main/ai-vault-search/session-search-fts5-contract.test.ts
  • src/main/ai-vault-search/session-search-hit-ranking.test.ts
  • src/main/ai-vault-search/session-search-hit-ranking.ts
  • src/main/ai-vault-search/session-search-index-generation.test.ts
  • src/main/ai-vault-search/session-search-index-generation.ts
  • src/main/ai-vault-search/session-search-orphan-rows.test.ts
  • src/main/ai-vault-search/session-search-page-cursor.ts
  • src/main/ai-vault-search/session-search-paging.test.ts
  • src/main/ai-vault-search/session-search-query-log.test.ts
  • src/main/ai-vault-search/session-search-query-log.ts
  • src/main/ai-vault-search/session-search-query-planner.test.ts
  • src/main/ai-vault-search/session-search-query-planner.ts
  • src/main/ai-vault-search/session-search-query-schema.ts
  • src/main/ai-vault-search/session-search-retrieval.ts
  • src/main/ai-vault-search/session-search-row-filter.test.ts
  • src/main/ai-vault-search/session-search-row-filter.ts
  • src/main/ai-vault-search/session-search-sidebar-parity.test.ts
  • src/main/ai-vault-search/session-search-snippet-marks.test.ts
  • src/main/ai-vault-search/session-search-snippet.ts
  • src/main/ai-vault-search/session-search-source-presence.ts
  • src/main/ai-vault-search/session-search-typo-policy.test.ts
  • src/main/ai-vault-search/session-search-typo-repair.ts
  • src/main/ai-vault-search/session-search-typo-scope.test.ts
  • src/shared/ai-vault-search-query-operators.test.ts
  • src/shared/ai-vault-search-query-operators.ts
  • src/shared/ai-vault-session-filters.ts
💤 Files with no reviewable changes (34)
  • .gitignore
  • src/main/ai-vault-search/session-search-snippet-marks.test.ts
  • src/shared/ai-vault-search-query-operators.ts
  • src/main/ai-vault-search/session-search-index-generation.ts
  • src/shared/ai-vault-search-query-operators.test.ts
  • src/main/ai-vault-search/session-search-query-planner.test.ts
  • src/main/ai-vault-search/session-search-typo-repair.ts
  • src/main/ai-vault-search/session-search-paging.test.ts
  • src/main/ai-vault-search/session-search-index-generation.test.ts
  • src/main/ai-vault-search/session-search-query-log.ts
  • src/main/ai-vault-search/session-search-snippet.ts
  • src/main/ai-vault-search/session-search-page-cursor.ts
  • docs/reference/agent-session-search-query-tuning.md
  • src/main/ai-vault-search/session-search-fts5-contract.test.ts
  • src/main/ai-vault-search/session-search-query-schema.ts
  • src/main/ai-vault-search/session-search-engine-test-fixture.ts
  • src/main/ai-vault-search/session-search-engine-types.ts
  • config/scripts/session-search-tool-heavy-corpus.ts
  • src/main/ai-vault-search/session-search-query-planner.ts
  • src/main/ai-vault-search/session-search-typo-policy.test.ts
  • src/main/ai-vault-search/session-search-row-filter.ts
  • src/main/ai-vault-search/session-search-retrieval.ts
  • src/main/ai-vault-search/session-search-query-log.test.ts
  • src/main/ai-vault-search/session-search-row-filter.test.ts
  • config/scripts/session-search-query-benchmark.ts
  • src/main/ai-vault-search/session-search-orphan-rows.test.ts
  • src/main/ai-vault-search/session-search-hit-ranking.ts
  • src/main/ai-vault-search/session-search-engine.ts
  • config/scripts/session-search-scope-benchmark.ts
  • src/main/ai-vault-search/session-search-source-presence.ts
  • src/main/ai-vault-search/session-search-sidebar-parity.test.ts
  • src/main/ai-vault-search/session-search-typo-scope.test.ts
  • src/main/ai-vault-search/session-search-hit-ranking.test.ts
  • src/main/ai-vault-search/session-search-engine.test.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The change removes the session search engine, query planning, retrieval, ranking, pagination, snippets, typo repair, indexing helpers, fixtures, tests, benchmarks, and documentation. Shared session filtering now parses repository and path operators locally, including quoted values.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 51767

The revert removes the premature search feature while retaining the session filter behavior needed by the sidebar. No merge-blocking risk was identified.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description states that this PR reverts #19750 and explains that the prerequisite #19751 was not merged first. However, it omits most required template sections, including ELI5, What Changed, Why,… Complete the required template sections. Add a valid linked issue reference, testing details, visual proof or N/A with a reason, AI disclosure if applicable, review and compatibility notes, the agent skill boundary checkbox, and the check…
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change as reverting the session search query engine feature. It is specific, concise, and consistent with the stated objective to revert PR #19750.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description states that this PR reverts #19750 and explains that the prerequisite #19751 was not merged first. However, it omits most required template sections, including ELI5, What Changed, Why, Linked Issue with a Fixes reference, Visual Proof, Testing, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist.

Resolution

Complete the required template sections. Add a valid linked issue reference, testing details, visual proof or N/A with a reason, AI disclosure if applicable, review and compatibility notes, the agent skill boundary checkbox, and the checklist items.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Clean revert of #19750 — a byte-identical git revert of commit cf7408a37 (the #19750 head), deleting the PR-4 session-search query engine and its tests, benchmark scripts, and tuning doc.
  • ai-vault-session-filters.ts restored — the 61 additions re-instate the pre-#19750 parseVaultQuery/tokenizeQuery/inline operator handling that #19750 had replaced with splitAiVaultSearchQuery.
  • .gitignore allow-list entry removed — !docs/reference/agent-session-search-query-tuning.md is dropped in lockstep with the deleted doc.

Verified no dangling references remain: a repo-wide search found zero imports of any deleted module, and the surviving session-search-{retention,write}-benchmark.ts scripts import only PR-2 files (session-search-store, session-search-index-consumer, etc.) that are untouched and still present. The revert's parent is exactly the reverted commit, so main is returned to the state it held before #19750 landed. The stated plan to re-land PR 4 on top of PR 3 (#19751) is consistent with this change.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@Jinwoo-H
Jinwoo-H merged commit f31bfa8 into main Sep 11, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant