Skip to content

fix(ai-vault): say OpenCode-in-WSL is not searchable from Windows yet - #20971

Merged
Jinwoo-H merged 1 commit into
mainfrom
session-search-wsl-opencode-copy
Sep 16, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
session-search-wsl-opencode-copy

Conversation

@Jinwoo-H

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

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

What the user sees

On Windows, when an OpenCode database lives on a \\wsl.localhost share, the Agent Session Search settings page shows a scan issue under that computer's row. It used to read:

OpenCode history in opencode.db could not be read. Windows cannot open SQLite databases over the \wsl.localhost share, so this history has to be read from inside the distro.

It now reads:

OpenCode sessions inside WSL can't be searched from Windows yet.

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.

  • Only the WSL-share branch changed. The live-writer, generic-error, and non-WSL write-ahead-log branches keep their existing text.
  • The issue keeps kind: 'scope' and its path, so rendering and grouping are unchanged.
  • Discovery, the WSL transcript gate, the busy-timeout behavior, and classification are untouched.
  • The measured explanation of why the share refuses SQLite's locks stays in the code comments, where it is still load-bearing for the timeout and the do-not-blame-a-writer branch.
  • unreadableShareAdvice became unreadableShareDetail because it now returns the whole sentence for the WSL case rather than advice appended to a prefix.

Gates

ORCA_BACKGROUND_LAUNCH=1 pnpm test src/main/ai-vault   149 files, 1316 tests passed
pnpm tc                                                clean
pnpm run check:code-quality:changed                    0 new findings across 2 changed files
pnpm exec oxfmt --write <changed files>                formatted

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

coderabbitai Bot commented Sep 16, 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: 2aa15746-2f1f-43ee-a605-c2460c7b818c

📥 Commits

Reviewing files that changed from the base of the PR and between f78483e and 564ab31.

📒 Files selected for processing (2)
  • src/main/ai-vault/session-scanner-opencode-sqlite-open.test.ts
  • src/main/ai-vault/session-scanner-opencode-sqlite-open.ts

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


📝 Walkthrough

Walkthrough

openCodeDatabaseScanIssue now delegates unreadable-database details to unreadableShareDetail. WSL UNC paths return the exact message that Windows cannot search OpenCode sessions inside WSL. Other paths retain the WAL and read-only guidance. Tests now require this exact WSL message for unreadable and locked database cases.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 564ab

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)

Check name Status Explanation Resolution
Description check ⚠️ Warning 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 expla… 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 Disclosu…
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 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 and concisely describes the main change: updating the OpenCode-in-WSL message for Windows users.
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 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.

  • 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

  • WSL-share copy now reads as a known limitation — unreadableShareDetail returns a single sentence for \\wsl.localhost paths ("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-unavailable and local contended paths keep their existing wording, with the helper now owning the OpenCode history in ${name} could not be read. prefix.
  • Tests tightened — the two WSL cases assert the exact message and issue.path rather 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.

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

@Jinwoo-H
Jinwoo-H merged commit f85d2bf into main Sep 16, 2026
29 checks passed
ivanvykopal pushed a commit to ivanvykopal/orca that referenced this pull request Sep 20, 2026
…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.
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