Skip to content

fix: survive icons that arrive without a display name - #2

Merged
Jubstaaa merged 2 commits into
mainfrom
fix/missing-display-name
Oct 12, 2026
Merged

Jubstaaa merged 2 commits into
mainfrom
fix/missing-display-name

Conversation

@Jubstaaa

Copy link
Copy Markdown
Owner

Fixes #1.

The crash in #1 maps (via a sourcemap of the v0.1.2 bundle, same hash as the one in the screenshot) to app-glyph.tsx:24: app.displayName.slice(0, 2). On iOS 27 at least one home screen icon arrives without a displayName; every iOS 26 layout I have carries one on every icon, so this is new.

  • displayName on AppIcon is optional now, so the compiler finds every place that read it.
  • nameOf(app) falls back to the bundle or display identifier. Nothing is written back that the device did not send, so a write round-trips the icon untouched.
  • The crash screen shows error.message too. WebKit leaves it out of error.stack, which is why the screenshot showed where it broke but not why.

Test: a diff with a nameless app used to throw in localeCompare and now lists it by identifier. bun run lint passes (29 tests).

Not verified on an iOS 27 device — I don't have one. Asked the reporter in #1 for the shape of the nameless icon.

iOS 27 sends some home screen icons with no displayName, and the editor
crashed reading one. Fall back to the bundle or display identifier
wherever an app is labelled.

Fixes #1
WebKit leaves the message out of error.stack, so the crash screen in #1
said where it broke but not why.
@Jubstaaa Jubstaaa added the bug Something isn't working label Oct 12, 2026
@Jubstaaa Jubstaaa self-assigned this Oct 12, 2026
@Jubstaaa Jubstaaa added the ios-27 Behaviour that changed in iOS 27 label Oct 12, 2026
@Jubstaaa
Jubstaaa merged commit ed261b2 into main Oct 12, 2026
2 checks passed
@Jubstaaa
Jubstaaa deleted the fix/missing-display-name branch October 12, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ios-27 Behaviour that changed in iOS 27

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Editor crashes on iOS 27 (iPhone 17 Pro Max)

1 participant