Repository navigation
Test AI Vault title-only search fallback - #33234
Conversation
Walkthrough
Priority: Merge Risk:
|
There was a problem hiding this comment.
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
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 }) |
There was a problem hiding this comment.
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
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
disabledandno-serviceshow title-only matching copy and do not offer retry.not-readykeeps 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
tests/e2e/ai-vault-panel-search.spec.ts.AI Disclosure
Review
Agent skill upstream boundary
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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)