Repository navigation
fix(ai-vault): say OpenCode-in-WSL is not searchable from Windows yet - #20971
Conversation
The scan issue for an OpenCode database on a \\wsl.localhost share read as an error with an instruction the user cannot follow. It now surfaces on the Agent Session Search settings page under a computer row, where it belongs as a known limitation, so the WSL branch now reads 'OpenCode sessions inside WSL can't be searched from Windows yet.' Copy only: the issue keeps kind 'scope' and its path, every other branch is untouched, and discovery, the WSL gate, and the busy-timeout behavior are unchanged.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This scoped copy change updates the WSL limitation message and its corresponding tests without evidence of affecting other scan behavior. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the user-visible change, rationale, scope, and test gates. However, it omits required template sections, including the linked issue, ELI5 summary, visual proof or an N/A explanation, testing checklist details, AI disclosure, review, boundary confirmation, notes, and the repository checklist. Resolution Add the missing required sections. Include a valid issue reference after “Fixes #”, provide an ELI5 summary, state “N/A” with a reason for visual proof if applicable, document testing platforms and completed checks, complete the AI Disclosure and Review sections, confirm the agent skill boundary, address the Notes items, and complete the checklist.
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- WSL-share copy now reads as a known limitation —
unreadableShareDetailreturns a single sentence for\\wsl.localhostpaths ("OpenCode sessions inside WSL can't be searched from Windows yet.") instead of prefixing a read failure onto share-path/driver-level advice. - Non-WSL fallback copy is byte-identical — the generic
wal-index-unavailableand localcontendedpaths keep their existing wording, with the helper now owning theOpenCode history in ${name} could not be read.prefix. - Tests tightened — the two WSL cases assert the exact message and
issue.pathrather than a substring, and the local live-writer / generic-unreadable assertions are unchanged.
I traced the classifier (src/main/sqlite/sqlite-read-failure.ts) and confirmed the WSL branch is only reached by wal-index-unavailable and contended-on-a-WSL-share; unreadable still takes precedence, so genuine corrupt/permission failures over a WSL share keep their underlying cause. kind stays 'scope' and path retains dbPath, so grouping and rendering are unaffected. No other producer of this copy exists and the renamed helper is module-private.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…stablyai#20971) The scan issue for an OpenCode database on a \\wsl.localhost share read as an error with an instruction the user cannot follow. It now surfaces on the Agent Session Search settings page under a computer row, where it belongs as a known limitation, so the WSL branch now reads 'OpenCode sessions inside WSL can't be searched from Windows yet.' Copy only: the issue keeps kind 'scope' and its path, every other branch is untouched, and discovery, the WSL gate, and the busy-timeout behavior are unchanged.

What the user sees
On Windows, when an OpenCode database lives on a
\\wsl.localhostshare, the Agent Session Search settings page shows a scan issue under that computer's row. It used to read:It now reads:
Why the old copy was wrong here
It was accurate but written as a read failure with a remedy. Windows genuinely cannot take SQLite's locks over that share, so there is nothing the user can do on the Windows side, and "read it from inside the distro" is not an action the settings page offers. On a settings surface this is a known limitation, not an error, so it should read like one. The old wording also leaked the share path and the driver-level reason into product copy.
Scope
Copy only.
kind: 'scope'and itspath, so rendering and grouping are unchanged.unreadableShareAdvicebecameunreadableShareDetailbecause it now returns the whole sentence for the WSL case rather than advice appended to a prefix.Gates