Repository navigation
Dev shows the app's name and icon again: bundle over Sepal's older bundles - #9
Merged
Merged
Conversation
In dev on macOS the host runs out of a throwaway bundle in node_modules/.sepal, so the Dock and the app switcher show the app's name and icon. Since apps became web builds, `calyx --bundle` only counted a bundle with Resources/index.html as its own, and refused to replace every bundle Sepal made before (Resources/app.js): "exists and was not built by Sepal; not replacing it". Dev then ran the bare host, and the Dock said "calyx", for anyone who had run dev before. The same refusal hit `pnpm bundle` over an older bundle. A bundle is Sepal's when its Resources has app.json next to the page or next to the old app.js. A test bundles over one in 0.2.0-alpha.0's layout; an .app Sepal did not make is still refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
theetherGit
marked this pull request as draft
November 26, 2026 14:59
theetherGit
marked this pull request as ready for review
November 26, 2026 15:31
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.
Fixes dev on macOS showing "calyx" instead of the app's name and icon.
Cause
In dev, the host runs out of a throwaway bundle in
node_modules/.sepal, which is what gives the Dock and the app switcher the app's name and icon. The web-build switch (84061df, in PR #5) changedbundle.rs's check for "a bundle Sepal built" fromResources/app.jstoResources/index.html. That madecalyx --bundlerefuse every bundle Sepal had made before:Dev only prints that as a "running unbundled" warning, then runs the bare host, so the Dock says "calyx". Every example here had such a bundle.
pnpm bundleover an older bundle hit the same refusal.The regression isn't in a release: 0.2.0-alpha.0's host still uses the old marker. It would have shipped in 0.3.0-alpha.0.
Fix
A bundle is Sepal's when its
Resourceshasapp.jsonnext to the page (index.html) or next to the oldapp.js. An.appSepal didn't make is still refused.Tests
replaces_a_bundle_from_before_index_htmlbundles the counter over a bundle in 0.2.0-alpha.0's layout. It failed before.never_replaces_an_app_it_did_not_buildstill passes.CFBundleNameCounter with itsAppIcon.icns.pnpm testpasses locally (134 host tests).The CHANGELOG line that said an older bundle "is not replaced by mistake" now says the opposite, which is the intended behaviour.
🤖 Generated with Claude Code