Skip to content

fix(desktop): preserve Windows OS for the Codex installer - #1034

Merged
nixuuu merged 1 commit into
devfrom
fix/codex-update-installer-failure
Nov 19, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/codex-update-installer-failure

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 19, 2026

Copy link
Copy Markdown
Member

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
nixuuu enabled auto-merge (squash) November 19, 2026 16:19
@nixuuu
nixuuu merged commit a1df052 into dev Nov 19, 2026
16 checks passed
@nixuuu
nixuuu deleted the fix/codex-update-installer-failure branch November 19, 2026 16:26
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