Repository navigation
fix(wsl): confirmed homes for transcript lookups, WSL delete as a user act, localized carryover notice - #35810
Conversation
… delete as user act, localized carryover notice OpenCode/ZCode transcript database lookups read inside the WSL homes they get, so they take only confirmed homes. A WSL session delete runs as a user act on its distro, so background readers stop trusting an older stopped read. The carryover notice gets a stable code and catalog copy in every locale.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 16 minutes. View limit details
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 |
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryThis PR separates WSL homes used for reads from homes used for path checks.
No actionable issues were found. Tests were inspected, not run. Intent acknowledged: Reviews (1) · Last reviewed commit: "fix(wsl): scanner follow-ups: confirmed ..." · Reviewed by Greptile |
Flag-off: applies with the flag on or off (bridge and WSL hosts alike).
User-risk: low.
ELI5
These are three small follow-ups to #35729, Orca's fixes for its history scanner starting stopped WSL distros.
What Changed
native-chat/transcript-opencode-database.ts,ai-vault/cached-session-list.ts).getAiVaultWslHomeDirs(), which since fix(wsl): close the session scanner's post-stop boot gaps #35729 keeps the last-known-good list so that path checks survive a failed probe. But these lookups then read inside those homes, through gated reads that refused a stopped distro midway.getAiVaultWslScanHomeDirs(), which returns confirmed homes only, so a stopped distro's home is absent.getAiVaultWslHomeDirs()remains for path-only checks (session delete, subagent listing), and its comment now says so.wsl-unc-delete.ts).tryDeleteWslUncPathruns itswsl.exe --exec rminsiderunAsWslUserAct(distro). It may still start a stopped distro, because the user asked for the delete. When it settles,noteWslDistroWokenfires, so background reads stop trusting an earlier "stopped" result. This covers both callers: the AI Vault session delete and the file explorer's WSL delete.wslSessionsFromLastScan(shared/ai-vault-scan-issue-copy.tsplus the renderer copy table).messagestays English for older clients. The catalog has the string asaiVault.scanIssues.wslSessionsFromLastScanin every locale, and inen-runtime-required.json.Why
Linked Issue
Internal WSL tracker, E9. These are follow-ups to #35729 from e9-reviewer (items 1 and 2) and d3-gate-audit (the localization low).
Visual Proof
N/A. The only visible change is the notice's language, which follows the app locale.
Testing
wsl-unc-delete.test.ts: thermruns inside a user act for its distro, andnoteWslDistroWoken('Ubuntu')fires. This fails without the change.cached-session-list.test.ts: with an unconfirmed probe, scan homes are empty while path-check homes keep the last-known-good home. The carryover issue carriesmessageCode: 'wslSessionsFromLastScan'.transcript-opencode-database.test.tsnow drives the confirmed-homes variant.ai-vault-scan-issue-copy.test.ts: the notice is English on the wire and Spanish when displayed ines.The ai-vault, native-chat, wsl and right-sidebar copy suites pass (6,631 tests). One load flake passes when run alone.
Localization:
verify:localization-catalogs,-catalog,-extraction,-coverageand-runtime-catalogall pass.Load rule:
pnpm tc,typecheck:ci,check:code-quality:changed, the anti-slop lint and the ast-grep gates.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Agent skill upstream boundary
Notes
messageCodefield. Older clients show the Englishmessage.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)