Repository navigation
fix(wsl-mover): add-host copy says bridge projects move automatically - #35330
Conversation
…, 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 18 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 |
|
STATUS: ready. Head 585a558, from origin/main 8866280. The add-WSL-host copy now says bridge projects move to the host automatically once their terminals are idle and can be brought back from the sidebar; all 11 locales updated (5 still had the pre-#34059 'use it for new projects' text). The dialog is offered only when WSL hosts accept new work (wslHostsAcceptNewWork). Checks: pnpm tc, typecheck:ci, localization catalogs + extraction, locale policy tests (47), renderer sidebar/i18n tests (68), code-quality, anti-slop, oxlint, ast-grep scan and gates. Review requested from e9-reviewer. |
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryUpdates the Add WSL distro dialog in all 11 languages to explain automatic moves, the Windows-drive exception, and how to bring projects back.
Reviews (3) · Last reviewed commit: "test(wsl-mover): sweep every locale's ol..." · Reviewed by Greptile |
…s Windows-drive projects here
|
STATUS: e9-reviewer's tweaks applied. Head eb8014b. The copy now says 'Projects in this distro that you opened through \wsl.localhost move … ; projects on a Windows drive (/mnt/…) stay on this computer. You can bring a moved project back from the sidebar.' All 11 locales updated, and the German uses 'inaktiv' without the doubled 'wieder … zurück'. Checks: pnpm tc, typecheck:ci, localization catalogs + extraction, 17 test files (115 tests passing), code-quality, anti-slop, oxlint, ast-grep scan and gates. Not merged. |
|
STATUS: head d0e58f3. The stale-phrase sweep now also bans each locale's old 'until you move them' wording: 'hasta que los muevas', "jusqu'à ce que vous les déplaciez", '移動するまで', '옮기기 전까지', '直到你将它们移到'. Each was checked verbatim against the catalog at 8866280. The in-this-distro, Windows-drive and German fixes were already in eb8014b. Checks: pnpm tc, typecheck:ci, localization catalogs, code-quality, anti-slop, oxlint, ast-grep; test 5/5. Not merged. |
ELI5
The "Add WSL distro" dialog told people their existing
\\wsl.localhostprojects would stay as they are until they moved them by hand. Once a host is added, though, Orca moves those projects to it automatically. Several translations still said even older copy ("use it for new projects; the others keep working as they are"). The dialog now says what actually happens, in every language.What Changed
Before:
After (English): "…Projects in this distro that you opened through \wsl.localhost move to this host automatically once their terminals are idle; projects on a Windows drive (/mnt/…) stay on this computer. You can bring a moved project back from the sidebar." All 11 locales carry the same meaning.
"In this distro" and the Windows-drive clause keep the promise to what the move scope accepts. Other distros' projects only move to their own host, and
windows-driveprojects are refused by the move scope.Mechanism:
AddWslHostFormPanel.tsxand theauto.components.sidebar.AddWslHostFormPanel.descriptionvalue in eachsrc/renderer/src/i18n/locales/*.jsonchange. No behaviour changes.registerWslMoveOrchestrator) moves a distro's bridge projects on connect, project-open and startup triggers. Auto-move is on unlessORCA_WSL_MOVE_AUTO=0, and the orchestrator defers while terminals are busy.Why
This is verify bug 9 from the flag-on checklist. #34059 fixed the English half of it ("use it for new projects" → "until you move them"). "Until you move them" still implies a manual step that doesn't exist, and five locales were never updated.
The German wording uses the catalog's usual „inaktiv“. The new copy doesn't quote the button label, because four locales don't translate it yet; it points to the sidebar instead.
Flag-off: with
ORCA_INTERNAL_WSL_HOSTSunset (and no saved WSL work), the add-WSL-host dialog isn't offered, so nobody sees this text. Copy-only change.User-risk: none to behaviour. Text only.
Linked Issue
Flag-on checklist §11: "Add-host copy contradicts the mover (verify bug 9)".
Visual Proof
N/A. A one-sentence text change in a dialog description; the strings are shown above. No layout change.
Testing
AddWslHostFormPanel.test.tsx:wsl.localhostand/mnt/…, and contains none of the stale phrases: the "new projects" wording, and each locale's old "until you move them" wording (en, es, fr, ja, ko, zh), each checked against the pre-change catalog.Checks run:
pnpm tcandpnpm run typecheck:civerify-localization-catalogsandverify-localization-extraction(0 inline defaults differ from en.json)pnpm run check:code-quality:changedReview
Agent skill upstream boundary
Notes
Status
Ready for review.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)