Ship sawyer-next: desktop UX + provider CLI health toasts + arm64 build + bundle slimdown#49
Merged
Merged
Conversation
Skip the npx bb-app rerun update toast when the renderer is running inside bb desktop. Add regression coverage so desktop update state does not trigger the server-update toast path. Source: bb/don-t-show-npx-rerun-server-toast-inside-desktop-thr_k7ggqdj9v3 (thr_k7ggqdj9v3).
Exclude generated source maps from electron-builder packaged desktop files. Add config and build tests so map files remain produced for local builds but omitted from app packaging. Source: bb/electron-desktop-strip-production-source-maps-fr-thr_rxa6kx5ces (thr_rxa6kx5ces).
Switch desktop packaging and CI from universal macOS builds to Apple Silicon arm64 artifacts. Pin the workflow to macos-15 with an arm64 runner check and rename uploaded artifacts accordingly. Update electron-builder targets and desktop docs to reflect arm64-only macOS builds. Source: bb/electron-desktop-arm64-only-build-drop-universal-thr_n4fiu5rihf (thr_n4fiu5rihf).
Detect missing or outdated Codex and Claude Code CLIs through the host-daemon local API. Surface dismissible app toasts with install/update actions and progress dialog output. Use provider CLI self-update commands and cover contract, local API, and UI behavior. Source: bb/toast-for-codex-claude-code-missing-or-outdated-thr_xpi6p9ywmg (thr_xpi6p9ywmg).
Update provider CLI health toast dismissal keys so dismissed warnings remain hidden across refetches and reloads. Dismiss stale warning toasts when the underlying provider CLI issue clears. Add UI coverage for dismiss, reappearance, stale cleanup, and localStorage failure behavior. Source: bb/provider-cli-toast-dismissal-v2.
Add a View menu toggle for Electron developer tools with the Cmd+Option+I accelerator. Cover the desktop menu template so the toggle remains wired to the built-in toggleDevTools role. Source: bb/desktop-enable-devtools-menu-item-cmd-option-i-s-thr_kzjvkt4mzx (thr_kzjvkt4mzx).
Clear the Electron default session HTTP cache on packaged desktop startup. Serve index HTML with no-store while keeping hashed static assets immutable. Add desktop session-cache and server static-header coverage. Source: bb/fix-prod-server-no-cache-headers-desktop-session-thr_9fmhce2btp (thr_9fmhce2btp).
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.
Summary
Ships accumulated
sawyer-nextwork ontomain. Seven squash commits:fix(app): suppress update toast in desktop— the npx-rerun toast is silenced when running inside the desktop wrapper (the desktop already shows an auto-update toast for the same condition).fix(desktop): exclude source maps from packaged app— strips.js.mapfiles from the packaged.app(≈125 MiB savings on the universal build, ≈70 MiB on arm64).desktop: build arm64-only mac artifacts— drops the universal mac build, ships arm64-only. CI runner pinned tomacos-15. Combined with the source-map strip, the bundle goes from 805 MiB → ~336 MiB (-58%). Intentionally drops Intel Mac support.app+host-daemon: add provider CLI health toasts— startup toast whencodexorclaude(Claude Code) is missing or outdated, with Install/Update buttons. Detection respects npm vs external install source; install/update commands stream NDJSON output to a dialog. Missing-CLI install usesnpm install -g @openai/codex@latestfor codex andcurl -fsSL https://claude.ai/install.sh | bashfor Claude Code. Outdated CLIs use<cli> update(self-update) for both.fix(app): persist provider CLI toast dismissals— corrects an over-sticky dismissal bug: persistence now only happens on explicit cancel-button click, not on auto-close after successful install. Resolved issues actively dismiss stale toasts and clear localStorage. Storage prefix bumped tobb:provider-cli-toast:dismissed-v2:to abandon buggy entries.desktop: add developer tools menu item— View → Toggle Developer Tools +Cmd+Option+Iaccelerator (previously unavailable in packaged builds).fix(desktop): refresh packaged renderer cache— production server now sendsCache-Control: no-storeforindex.html/SPA fallback (and immutable for hashed/assets/*), and the packaged Electron shell callssession.clearCache()once on launch. Fixes the bug where bb-next loaded a stale renderer bundle from prior bb.app installs (same bundle ID, shared Electron HTTP cache).Test plan
pnpm exec turbo run typecheckandpnpm exec turbo run testacross all touched packages (server, app, host-daemon, host-daemon-contract, desktop). All passed locally on each constituent commit.pnpm exec turbo run desktop:build --filter=@bb/desktop --force— producesbb-X.Y.Z-arm64.dmg,bb-X.Y.Z-arm64.zip,latest-mac.yml, no source maps inbb.app.View → Toggle Developer Toolsworks.🤖 Generated with Claude Code