Repository navigation
fix(worker): detect native cli installs on windows - #994
Merged
Merged
Conversation
nixuuu
marked this pull request as ready for review
November 19, 2026 11:46
Member
Author
|
Local Linux verification on
The maintainer moved the practical Windows 11 update test to the first published Nightly containing this fix. The Linux regression tests and GitHub checks do not verify a real update of Claude Code or Codex Standalone on Windows 11. |
Member
Author
This was referenced Nov 19, 2026
nixuuu
added a commit
that referenced
this pull request
Nov 19, 2026
## Problem Updating Codex Standalone from Canopy Desktop on Windows starts the official `install.ps1` in Windows PowerShell. The script rejects Windows when `$env:OS` is absent. The Desktop service allowlist dropped `OS` before the worker and installer could inherit it. ## Change Preserve the OS value inherited by Desktop across the controller and worker launches. The official script still validates the platform. Fixes: #994 ## Verification - On `nix-pc` (Linux) at `df3cbe78`, 32 tests passed and one Windows-only supervisor test was skipped. The affected process recovery, CLI discovery, and gateway-to-worker CLI integration tests ran through `check:tmp` with no leftovers. - Added a subprocess regression that failed on the original allowlist. On Linux it supplies a synthetic Windows environment value and checks what the installer process receives. On Windows it runs the same guard in `powershell.exe`. A live Codex upgrade on Windows remains unverified. - Desktop typecheck, lint on edited files, commitlint, and `git diff --check` passed. The full verification gate runs in GitHub Actions.
nixuuu
added a commit
that referenced
this pull request
Nov 19, 2026
## Problem Canopy could refuse a Claude Code update based on a saved running report, even if the worker had reconnected and had no such installation. During an actual overlap, a second click could also surface a start refusal as a failed update. The reported Nightly installer output confirms Claude Code 2.1.328 was ready on Windows. The screenshot and output do not share an attempt ID. The Windows detection change in #994 enabled the action for native installs. ## Change - Use the current worker connection for live installer status, and keep installer output with its attempt ID. - Let the worker arbitrate installs. Repeated individual requests for the same active target use the existing result. Update all reconciles an explicit busy refusal with later reports and follows the active attempt ID. An install gets its full completion window once the contention clears. - Wait for any active installer for that CLI to finish validation before treating its reported version as proof of success. The worker checks the installed version again before installing an Update all target, including when a linked snapshot is stale. The coordinator sends guarded installs only on a live link to a gateway that supports the guard. - Record the accepted attempt ID in the audit entry. ## Verification - Revision `06bb2f70` on Linux (`nix-pc`). All 86 tests passed across provider-cli, update-cli-attempts, mise-cli, update-center, update-all-computers, and cli-discovery. The test temp directory was clean. - Regression coverage includes an outdated running report, repeated requests, same-version correlation, different-version contention, a rollback-capable competing attempt a guarded stale target sent to the worker, and an older linked gateway that must receive only the ordinary unguarded request. - Generated contracts with `bun run gen`. Gateway, worker, and integration test typechecks passed. Targeted Oxlint, Oxfmt and `git diff --check` passed. - Tests exercise a real Linux worker and simulated installers. Windows execution of this revision remains unverified. ## Copy audit - Update all now tells the user to update an older worker before retrying a guarded install. If the worker cannot identify the installed CLI version, the message explains the missing version and gives the next action. An older linked gateway gets a short Canopy update instruction in the same place. - Checked both messages in the existing Updates popover against a local fixture in a desktop-width light view and a 390 px dark view with short and long worker names. The existing error control provides the full text when the compact row truncates it. Fixes: #26 Fixes: #947 Related: #994
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Canopy detected newer versions for the native Claude Code and Codex Standalone installations in the Windows 11 report. Both were listed as “Other install”, which hid the update action.
Change
Verification
nix-pc, revisionabcdd24b. All 31 tests passed across CLI discovery, CLI locations, and gateway/worker CLI integration. The test temp directory was clean.git diff --checkpassed.