Skip to content

Test AI Vault title-only search fallback - #33234

Merged
AmethystLiang merged 1 commit into
mainfrom
fix-ai-vault-search-fallback-e2e
Oct 25, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
fix-ai-vault-search-fallback-e2e

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​39 $\color{#cf222e}{\Huge{\mathbf{−}}}$​31 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​8
Prod 0 0 0 0

Problem

When full-text AI Vault search is unavailable, the panel needs to clearly fall back to matching session titles and keep the right retry behavior.

Solution

Update end-to-end coverage to test each unavailable-search reason in a fresh panel, verify title-only fallback messaging, and verify retries remain available only while the index is still warming up.

ELI5

AI Vault can still look through session names when deeper search is unavailable. This change checks that the app explains that clearly and behaves correctly.

What Changed

  • Split unavailable-search coverage into isolated tests because the title-only fallback persists for a host.
  • Verify disabled and no-service show title-only matching copy and do not offer retry.
  • Verify not-ready keeps the retry action available.

Why

This prevents regressions where unavailable full-text search either loses the useful title-only fallback or shows the wrong retry option.

Linked Issue

Fixes #

Visual Proof

N/A — test-only change with no production UI implementation change.

Testing

  • Updated tests/e2e/ai-vault-panel-search.spec.ts.
  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Considered search availability states and persisted host fallback behavior. No production changes to security, cross-platform support, remote SSH, mobile, backwards compatibility, or performance.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The test for unavailable search responses now runs separately for disabled, not-ready, and no-service. Each test checks transport failure, retries with the unavailable response, and verifies the displayed message and retry-button behavior. The disabled and no-service tests also check that the message remains after another query.

Priority: Low

Merge Risk: Low · up to f1051

The tests can pass with incorrect transport-failure guidance, but the gap is limited to message verification. The change is mergeable with that test assertion corrected or accepted as a follow-up.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: testing the AI Vault title-only search fallback.
Description check Passed The description explains the problem, solution, behavior covered, testing scope, and rationale. It includes the required sections and correctly marks visual proof as not applicable for a test-only cha…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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 explains the problem, solution, behavior covered, testing scope, and rationale. It includes the required sections and correctly marks visual proof as not applicable for a test-only change. The linked issue remains blank, and several checklist items are unchecked, but the description is otherwise sufficiently complete.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 09e5d69f-c8f0-4f17-8c77-ce71f24cdf02
Commits

Reviewing files that changed from the base of the PR and between 015fae8 and f105190.

Files selected for processing: 1
  • tests/e2e/ai-vault-panel-search.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

const input = orcaPage.getByRole('textbox', { name: 'Search sessions', exact: true })
await input.fill('needle')
await expect(
orcaPage.getByText('Could not search this computer.', { exact: false })

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.

Minor · Functional Correctness · Quick win

Assert the complete user-visible messages.

The partial matches accept text with an incorrect ending. Match the full transport-failure message and use { exact: true } for the title-only message. Based on learnings, “Partial matches leave complete text unverified.”

Also applies to: 246-246

Source: Learnings

@AmethystLiang
AmethystLiang merged commit 870038c into main Oct 25, 2026
38 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