Repository navigation
fix(wsl-host): say which WSL distro an agent isn't installed in - #35800
Conversation
e5c42cc to
592c773
Compare
|
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 7 minutes. View limit details
Walkthrough
Priority: Merge Risk:
|
[Medium impact] The PR appears safe to merge; no actionable new defect was established. SummaryWSL chats name the distro when an agent is missing, while other hosts keep the existing wording.
No actionable new issues were found in the changes since the previous review. Reviews (2) · Last reviewed commit: "test(wsl-host): reach the missing-agent ..." · Reviewed by Greptile |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Minor · Pass the distro to delivery notices too. · NativeChatStructuredSession.tsx:139
src/renderer/src/components/native-chat/NativeChatStructuredSession.tsx:139
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winPass the distro to delivery notices too.
If a WSL send has a visible
cliMissingrejection without a matching start row, the availability hook suppresses its notice. The delivery notice is built with onlyagentNameand renders directly under the user message, so it retains the generic computer wording. Pass the distro through the delivery-notice failure context. (raw.githubusercontent.com)

Review info
-
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:
06b1e1ce-2b9a-4510-aae1-4f35d51d7b01
Files selected for processing: 25-
src/renderer/src/components/native-chat/NativeChatInterruptedContinue.tsxsrc/renderer/src/components/native-chat/NativeChatNoticeRow.tsxsrc/renderer/src/components/native-chat/NativeChatNoticeRow.wsl-cli-missing.test.tsxsrc/renderer/src/components/native-chat/NativeChatStructuredSession.tsxsrc/renderer/src/components/native-chat/agent-session-availability-words-text.tssrc/renderer/src/components/native-chat/native-chat-orca-stop-context.tssrc/renderer/src/components/native-chat/use-native-chat-availability-notice.test.tsxsrc/renderer/src/components/native-chat/use-native-chat-availability-notice.tssrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/de.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/pt.jsonsrc/renderer/src/i18n/locales/ru.jsonsrc/renderer/src/i18n/locales/tr.jsonsrc/renderer/src/i18n/locales/zh-Hant.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/shared/agent-session-availability-sentences-wsl.test.tssrc/shared/agent-session-availability-sentences.tssrc/shared/agent-session-failure-copy.tssrc/shared/agent-session-failure-words.tstests/e2e/wsl-host-chat.spec.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
-
…ent left the host
ELI5
On a WSL host, when Claude, Codex or another agent isn't installed inside the distro, the chat used to say "Claude wasn't found on the computer running this chat." That's confusing on Windows, because the user may well have Claude installed on Windows. Now the chat says "Claude isn't installed in the WSL distro Ubuntu. Install it inside Ubuntu, or check its Command in Settings → Agents."
What Changed
This is renderer-only wording. Nothing new crosses the wire: the host still reports the existing
cliMissingreason, and the desktop already knows the chat's target is a WSL host and which distro it is.cliMissingInWslDistro.cliMissingSentenceuses it when the words context carries a new desktop-onlywslDistrofield, and still adds the "Run /x again." retry when a command failed.NativeChatNoticeRow): for acliMissingrow on a WSL host, it re-says the host's plain English sentence with the distro named. It does this only when the host's text is exactly that plain sentence, the same match the row already uses for sign-in wording. Host text that carries more, such as a command retry, is kept as is.useNativeChatAvailabilityNotice): names the distro the same way. The hook now derives the agent's label fromagentitself, so the chat pane passes the distro without growing past its line limit. Its only caller passed the same label anyway.wslHostDistroForTarget), carried on the chat's existing host view (NativeChatOrcaStopView.wslDistro).tests/e2e/wsl-host-chat.spec.ts. The host (the HUB) finds noclaudeon its PATH, and the chat must say "Claude isn't installed in the WSL distro Ubuntu." and never "the computer running this chat".Why
The generic sentence points Windows users at the wrong machine. Naming the distro on the client avoids a new refusal reason, which older clients couldn't render, and an older host still gets the new words. The alternative was host-side copy, but the host can't know it is reached as a "WSL host".
Release note
On a WSL host, a chat whose agent isn't installed in the distro now names the distro and says to install it there.
Linked Issue
N/A (maintainer).
Visual Proof
The e2e run saves
wsl-host-chat-cli-missing.png. I'll attach it in a comment once CI produces it.Testing
New unit tests:
The e2e case is described above.
The load rule passes:
pnpm tc,typecheck:ci, the e2e-typecheck ratchet, the five localization verifiers, base/native-plugin/type-aware/anti-slop oxlint,check:code-quality:changed, ratchets and the ast-grep gates. The touched suites pass, 336 tests.One dependency: if the host misclassifies a missing CLI as a start failure (being fixed separately), the transcript row keeps the start-failure words. The composer notice still names the distro.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Flag-off: without
ORCA_INTERNAL_WSL_HOSTSthere are no WSL host environments, sowslDistrois always absent and every chat shows exactly the old sentence.Agent skill upstream boundary
Notes
SSH and paired hosts, and this computer, are unchanged.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)