Skip to content

fix(wsl-mover): add-host copy says bridge projects move automatically - #35330

Merged
nwparker merged 3 commits into
mainfrom
nwparker/wsl-add-host-copy
Oct 28, 2026
Merged

nwparker merged 3 commits into
mainfrom
nwparker/wsl-add-host-copy

Conversation

@nwparker

@nwparker nwparker commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​45 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​42
Prod 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​12 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12 0

ELI5

The "Add WSL distro" dialog told people their existing \\wsl.localhost projects 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-drive projects are refused by the move scope.

Mechanism:

  • Only the default string in AddWslHostFormPanel.tsx and the auto.components.sidebar.AddWslHostFormPanel.description value in each src/renderer/src/i18n/locales/*.json change. No behaviour changes.
  • The new text matches what the mover does. Once the gate is open and a host is added, the move orchestrator (registerWslMoveOrchestrator) moves a distro's bridge projects on connect, project-open and startup triggers. Auto-move is on unless ORCA_WSL_MOVE_AUTO=0, and the orchestrator defers while terminals are busy.
  • A moved project comes back through "Use on this computer again" in the sidebar.

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_HOSTS unset (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

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

AddWslHostFormPanel.test.tsx:

  • The rendered dialog no longer says "until you move them". It does say that this distro's projects move automatically, that Windows-drive projects stay, and how to bring one back.
  • New check that every locale's description still names wsl.localhost and /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 tc and pnpm run typecheck:ci
  • verify-localization-catalogs and verify-localization-extraction (0 inline defaults differ from en.json)
  • the locale policy script tests and the renderer sidebar/i18n tests (115 total)
  • pnpm run check:code-quality:changed
  • anti-slop oxlint and oxlint
  • ast-grep scan and gates

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • SSH, folder workspaces and wire compatibility: not affected; copy only.
  • Translations: written by hand to match each locale's existing wording for the dialog.

Status

Ready for review.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

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: 39c70137-f62d-4221-b4e4-8e8e7441d3b6
Commits

Reviewing files that changed from the base of the PR and between 6c54b4f and d0e58f3.

Files selected for processing: 13
  • src/renderer/src/components/sidebar/AddWslHostFormPanel.test.tsx
  • src/renderer/src/components/sidebar/AddWslHostFormPanel.tsx
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@nwparker

Copy link
Copy Markdown
Contributor Author

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.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Updates the Add WSL distro dialog in all 11 languages to explain automatic moves, the Windows-drive exception, and how to bring projects back.

  • The WSL host dialog explains automatic project moves in every language.

Reviews (3) · Last reviewed commit: "test(wsl-mover): sweep every locale's ol..." · Reviewed by Greptile

@nwparker

Copy link
Copy Markdown
Contributor Author

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.

@nwparker

Copy link
Copy Markdown
Contributor Author

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.

@nwparker
nwparker merged commit 2be70e5 into main Oct 28, 2026
76 of 81 checks passed
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