Repository navigation
fix(packaging): ship serve-sim only in macOS builds - #25128
Conversation
serve-sim drives the iOS Simulator, which exists only on macOS. Since 0.1.47 (#24228) it carries a Mach-O addon, and Windows signing rejects every *.node that is not a PE file, so the v1.4.220 Windows build failed at SignPath.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — gate serve-sim to macOS packaging so Windows/Linux stop shipping its Mach-O addon.
- Route
serve-simthrough a macOS-only root list —'serve-sim'leaves the sharedPACKAGED_RUNTIME_PACKAGE_ROOTS; a newDARWIN_PACKAGED_RUNTIME_PACKAGE_ROOTSis merged intocollectPackagedRuntimePackagesonly whenelectronPlatformName === 'darwin', mirroring the existing Windows-only list. macOSextraResourcesis unchanged. - Regression test added — asserts
serve-simis absent from the shared roots, the Linux closure, andlinux/winextraResources, while the existing macOS test still pins its presence.
I verified the off-macOS claim independently: IosEmulatorBackend.isSupportedOnHost() returns platform() === 'darwin' (src/main/emulator/backends/ios-emulator-backend.ts:66), the router selects the Android backend elsewhere, no main-bundle code bare-imports serve-sim, and app.asar carries no node_modules (config/electron-builder.config.cjs:112), so removing it from extraResources removes it from the package entirely. The electron-builder-config, package-electron-runtime-contract, and electron-builder-runtime-resources suites pass locally (60 tests).
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe shared packaged runtime roots no longer include Priority: ⬆️ High Merge Risk: ⚪ Minimal · up to The change keeps serve-sim in macOS packages while excluding it from Windows and Linux outputs, with regression coverage for those paths. No concrete merge blocker remains; the Windows release-signing run is still a follow-up validation. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change narrowly removes an unsupported simulator dependency from Windows and Linux while preserving macOS packaging. No introduced security weakness was identified. The resulting release artifacts and signing outcome remain unverified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
Upstream cut v1.4.220 the day machamy.18 shipped. This merges main to ea6a6d6, which contains everything in that tag including its tag-only packaging fix (stablyai#25128). The fork's statusline model/effort endpoint now sits behind upstream's new status-hooks gate. The window-services tests are upstream's file again: the fork's split-out harness and TCC test became duplicates, and upstream's 31 tests pass unchanged on fork code. The sidebar reveal path feeds worktree folder expansion from upstream's host-scoped lineage inputs. Co-Authored-By: Claude Fable 5.1 <[email protected]>

ELI5
serve-sim is the tool Orca uses to show the iOS Simulator, which only exists on macOS. Windows and Linux builds were shipping it anyway. Since the latest serve-sim version added a macOS-only binary, the Windows release signing step rejects it, and that blocked v1.4.220. This change ships serve-sim only in macOS builds.
What Changed
serve-simis in the runtime package list that every desktop build copies intoresources/node_modules. Since fix(emulator): take serve-sim 0.1.47 so the iOS simulator works on Xcode 27 #24228 (serve-sim 0.1.47, for Xcode 27), the package includesdist/native/serve-sim-native.node, a macOS universal (Mach-O) binary..exe,.dlland.nodefor SignPath.**/*.nodeas Windows PE files, so it failed the v1.4.220 signing request: "The file does not correspond to the specified file type … serve-sim-native.node".serve-simmoves to a macOS-only root list, beside the existing Windows-only list, so Windows and Linux packages no longer contain it.isSupportedOnHost()returnsplatform() === 'darwin'), and the emulator bridge picks the Android backend there.resolveServeSimExecutableis reached only through the iOS backend.Why
serve-sim-native.nodeis not a Windows binary: it starts withcafebabe, notMZ.Linked Issue
N/A (maintainer; release blocker for v1.4.220)
Visual Proof
N/A: packaging change only, with no UI change.
Testing
serve-simis not in the shared runtime roots, the Linux closure, or the Windows and LinuxextraResources. It fails without the change, and the existing macOS serve-sim test still passes.electron-builder-configand the packaged-runtime suites pass (5 files, 75 tests).Review
Agent skill upstream boundary
Notes
Checklist
N/Afor visuals, with reason