Skip to content

feat(desktop): add Windows ARM64 MSIX packaging, Store fixes, and WinGet CI - #404

Merged
Brooooooklyn merged 2 commits into
mainfrom
feat/windows-store-msix-winget
Nov 24, 2026
Merged

Brooooooklyn merged 2 commits into
mainfrom
feat/windows-store-msix-winget

Conversation

@Brooooooklyn

Copy link
Copy Markdown
Contributor

Summary

Adds Windows ARM64 Microsoft Store MSIX packaging (LongYinan.Portato), Store-compliance and Windows desktop UI fixes, and automated WinGet (microsoft/winget-pkgs) release CI.

flowchart LR
    Tag["Git tag v*"] --> Win["windows job (windows, arm64)"]
    Win --> Zip["mlx-node-<ver>-win32-arm64.zip + SHA256"]
    Win --> Msix["MakePri + MakeAppx -> mlx-node-<ver>-win32-arm64.msix"]
    Win --> WGMan["winget-manifest.ts -> 1.12.0 YAML artifact"]

    Msix --> PC["CI artifact -> Partner Center (LongYinan.Portato)"]
    Zip --> Rel["release job (macos-26) -> GitHub Release + Homebrew"]
    Rel --> WG["winget job (ubuntu-latest): verify ZIP -> pinned Komac -> verify PR"]
Loading

Changes

  • Windows icons & Store tiles (packages/desktop/build/make-icons.ts, stage-app.ts): generates multi-size icon.ico and 46 MSIX PNG assets (packages/desktop/build/msix/); runs cross-platform on Windows without macOS iconutil and stages icon.ico only on win32.
  • ARM64 MSIX packaging & verification (windows-msix.ts, release-version.ts, package-windows.ts, check-release.ts): builds and verifies unsigned .msix (LongYinan.Portato, CN=F04DA088-C2D4-46E8-921E-82D147E19F3F, MinVersion="10.0.26100.0", Microsoft.VCLibs.140.00.UWPDesktop, runFullTrust, AppExecutionAlias, monotonic (MAJOR + 1).MINOR.PATCH.0 Store version).
  • Windows UI & Store compliance (paths.ts, window-policy.ts, window.ts, tray.ts, updates.ts, child-env.ts, main/index.ts, control-panel/index.ts, packages/dashboard/):
    • Restores native Windows window controls and sets icon.ico for window & tray; adds tray left-click and hides macOS-only items (Show in Dock, Command+Q, template tinting).
    • Under process.windowsStore, disables out-of-band mlx agent update downloads, startup cliLauncher.prepare() download probes, and update menu items, and exposes agent.canInstall: false so Chat/Work show an unavailable notice instead of a failing Install/Try again loop.
  • WinGet manifests & CI (winget-manifest.ts, .github/workflows/desktop-release.yml, packages/desktop/README.md):
    • Generates WinGet 1.12.0 portable ARM64 ZIP manifests (winget:manifests) and uploads them alongside the MSIX artifact on stable builds.
    • Adds a winget job decoupled from post-publication Homebrew failures, using a pinned, SHA-256-verified Komac v2.17.2 binary, step-scoped WINGET_TOKEN, live release asset digest verification, and post-submit verification of the target branch, changed manifest file, URL, and SHA-256.

Verification

  • tsc -b packages/dashboard packages/desktop + script/test/UI --noEmit typechecks: passed
  • vp fmt --check & vp lint: 0 warnings, 0 errors
  • vp test run across 14 desktop & dashboard test files: 375/375 passed (including live Windows SDK MakePri.exe + MakeAppx.exe e2e test)
  • Real 1.03 GB Windows ARM64 .msix pack + verifyWindowsMsix: passed (8,231 payload files + 46 visual assets)
  • winget validate --manifest: Manifest validation succeeded.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 23ebee02-49a0-4b00-a7e4-8026170da494

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T09:31:09.089650Z b31f498 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Brooooooklyn
Brooooooklyn force-pushed the feat/windows-store-msix-winget branch from b31f498 to a294e61 Compare November 24, 2026 10:26
@Brooooooklyn
Brooooooklyn merged commit b4caf1f into main Nov 24, 2026
9 checks passed
@Brooooooklyn
Brooooooklyn deleted the feat/windows-store-msix-winget branch November 24, 2026 12:06
Brooooooklyn added a commit that referenced this pull request Nov 29, 2026
## Summary

The app moves to mlx-agent v0.3.8 (released from mlx-node/grok-build,
tag `mlx-agent-v0.3.8`). v0.3.8 steers content search to ripgrep. The
v0.3.7..v0.3.8 agent diff is tool-description text only, in 2 files
(`grok_build/bash/mod.rs`, `grok_build/monitor/tool.rs`).

```
first Work request, v0.3.7 vs v0.3.8 (real agents, app launch + env): exactly 2 lines differ
  run_terminal_command  + "- Content search: Prefer the grep tool. When it cannot cover the search,
                           use `rg` in the shell, or `grep` only if `rg` is not installed. ..."
  monitor               - "Use `grep --line-buffered` in pipes ..."
                        + "Use `rg --no-config --line-buffered` in pipes (`grep --line-buffered` if `rg` is not installed; ...)"
Chat request: identical (Chat has no bash or monitor)
```

## What changed

- `MLX_AGENT_MIN_RELEASE = mlx-agent-v0.3.8`. A cached v0.3.7 is now
stale, so `mlx agent` downloads v0.3.8 and the app shows "Agent out of
date → Update".
- `chat-agent-host.test.ts`: a managed v0.3.7 is `agent-too-old`; the
accepted launch is v0.3.8.
- `agent-update.test.ts`, the dev harness tag, a dev-dashboard note and
`docs/dashboard.md` follow the new minimum.
- Kept at v0.3.7: four comments that name where recorded data came from
(`workflow-agent-stop.json:2`, `chat-agent-host.test.ts:44`,
`chat-permissions.test.ts:630`, `fake-agent.mjs:2927`). Nothing on the
wire changed, so they stay true.

Expect one full prefill on the first turn of a Work session that resumes
after the update. The tool text is part of the prompt, so its saved
prefix no longer matches. This is inferred, not measured.

## Checks

| Check | Result |
|---|---|
| Download | The app's own `downloadAgentBinary` fetched v0.3.8. The
tarball sha256 `f5ca799b…` matches the GitHub `.sha256` and the R2 copy.
R2 and GitHub `latest` both name v0.3.8. All 6 platform assets are
present. |
| Real agent | All 17 opt-in `*-real-agent.test.ts` files pass on v0.3.8
(43 tests). `~/.mlx-agent/sessions` was unchanged. |
| Request probe | The diff above, from the app's Work launch, env and
session params against a recording engine. |
| Mutation "minimum left at v0.3.7" | `chat-agent-host.test.ts` goes red
on the new assertion. |
| Pin audit | No missed site in CI, desktop packaging, CLI or docs. The
release jobs fetch `latest` with no tag, so they bundle v0.3.8. |
| Codex review | 4 findings. 1 was a false alarm: it read the file
during the mutation run. 3 were not defects of this branch: the Windows
Store build has no agent (since #404), the packagers do not check the
staged tag (CI cannot hit it), and an old `MLX_AGENT_TAG` pin shows "not
installed". Every earlier minimum raise had the same three. |

## Test plan

- [x] `vp install`, `yarn build:ts`, `yarn typecheck`
- [x] `vp test __test__/cli/agent-update.test.ts` (113),
`chat-agent-host.test.ts` (103)
- [x] `vp test packages/dashboard --run`: 6744 passed. `yarn test
--project pure-ts --run`: 8557 passed
- [x] `vp test packages/agent --run`: 98 passed. The 2 addon-lane files
did not load, because the worktree has no native build. CI runs them.
- [x] `vp lint --type-aware --type-check` and `vp fmt --check` on the 6
touched files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_014rvL2XorFAhRoNvpPynyq5

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

2 participants