Skip to content

Dev shows the app's name and icon again: bundle over Sepal's older bundles - #9

Merged
theetherGit merged 1 commit into
mainfrom
dev-bundle
Nov 26, 2026
Merged

theetherGit merged 1 commit into
mainfrom
dev-bundle

Conversation

@theetherGit

Copy link
Copy Markdown
Contributor

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) changed bundle.rs's check for "a bundle Sepal built" from Resources/app.js to Resources/index.html. That made calyx --bundle refuse every bundle Sepal had made before:

…/node_modules/.sepal/Counter.app exists and was not built by Sepal; not replacing it

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 bundle over 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 Resources has app.json next to the page (index.html) or next to the old app.js. An .app Sepal didn't make is still refused.

Tests

  • New: replaces_a_bundle_from_before_index_html bundles the counter over a bundle in 0.2.0-alpha.0's layout. It failed before.
  • Unchanged: never_replaces_an_app_it_did_not_build still passes.
  • By hand: the debug host bundles the counter over a copy of the real old dev bundle, and gets CFBundleName Counter with its AppIcon.icns.
  • Status: pnpm test passes 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

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
theetherGit marked this pull request as draft November 26, 2026 14:59
@theetherGit
theetherGit marked this pull request as ready for review November 26, 2026 15:31
@theetherGit
theetherGit merged commit c19a5e2 into main Nov 26, 2026
4 of 8 checks passed
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.

1 participant