Repository navigation
fix: keep the bar running when a package's widget and its popup are removed together - #39
Merged
Merged
Conversation
This was referenced Oct 16, 2026
|
🎉 This PR is included in version 0.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Dec 2, 2026
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.
Problem
Disabling a widget package crashed the bar. A package such as
calendar-agendadefines a named popup (popups) and a widget that opens it withpopupName, so disabling the package removes both in one edit. SwiftUI then redraws the old widget view once more against the new configuration, andwidgetPopupforce-unwrappedstore.configuration!.popups[name]!, which no longer exists:The lookup dates from the widget packages work (
42713bc), and a crash report from 0.1.0 shows the same failure in the older popup lookup. The store makes it easy to hit: four of its five packages that contain no commands use named popups.Changes
widgetPopupreturns no popup when the named popup isn't in the current configuration, instead of crashing. The stale view disappears with the next redraw.Testing
swift test: all tests pass.calendar-agenda.Merging
Either style; it's one commit.
Claude Opus 5.5 via Claude Code.