Repository navigation
feat(desktop): add Windows ARM64 MSIX packaging, Store fixes, and WinGet CI - #404
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
b31f498 to
a294e61
Compare
## 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]>
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"]Changes
packages/desktop/build/make-icons.ts,stage-app.ts): generates multi-sizeicon.icoand 46 MSIX PNG assets (packages/desktop/build/msix/); runs cross-platform on Windows without macOSiconutiland stagesicon.icoonly onwin32.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.0Store version).paths.ts,window-policy.ts,window.ts,tray.ts,updates.ts,child-env.ts,main/index.ts,control-panel/index.ts,packages/dashboard/):icon.icofor window & tray; adds tray left-click and hides macOS-only items (Show in Dock,Command+Q, template tinting).process.windowsStore, disables out-of-bandmlx agent updatedownloads, startupcliLauncher.prepare()download probes, and update menu items, and exposesagent.canInstall: falseso Chat/Work show an unavailable notice instead of a failing Install/Try again loop.winget-manifest.ts,.github/workflows/desktop-release.yml,packages/desktop/README.md):winget:manifests) and uploads them alongside the MSIX artifact on stable builds.wingetjob decoupled from post-publication Homebrew failures, using a pinned, SHA-256-verified Komacv2.17.2binary, step-scopedWINGET_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--noEmittypechecks: passedvp fmt --check&vp lint: 0 warnings, 0 errorsvp test runacross 14 desktop & dashboard test files: 375/375 passed (including live Windows SDKMakePri.exe+MakeAppx.exee2e test).msixpack +verifyWindowsMsix: passed (8,231 payload files + 46 visual assets)winget validate --manifest:Manifest validation succeeded.