Repository navigation
Description
What happens
The screens bot reports Share My Bar screens as changed on pull requests that don't touch them. On #894 (an uninstall fix), all 8 scenes/share-my-bar* screens changed by 646–761 pixels, every time in the 33×33 area of StableBar's icon in the card's corner. Enlarged, the icons in the before and after images look the same; only the edge antialiasing differs. Each such report blocks the pull request on the Visual review check until a maintainer adds visual-ok.
#624 was the same problem in the Accessibility guide. #625 fixed only that scene, so the bug came back in Share My Bar and can come back in any other view that draws the icon the same way.
Steps to reproduce
- Open a pull request that changes no Share My Bar code or icon, such as fix: undo StableBar's changes when it's uninstalled from Settings or with Homebrew #894.
- Read the screens bot's comment: the
share-my-barscenes are listed as changed, with the difference confined to the icon.
It doesn't happen on every run. An audit of 55 CI runs for #625 found the difference in 7 (comment).
Expected
Unchanged icon artwork draws identically in every scene, in both the base and head builds. A real change to AppIcon.icns or to a layout still shows up. Nothing on main can draw the icon in a way that brings this back.
Environment
GitHub Actions, macos-26; main at 1cb5b24, #894 at 2afedbb.
Evidence
- #894's screens report: 8 changed screens, 255 unchanged, each difference inside the icon at 1108–1145, 455–717.
- The explanation on #894 with the enlarged before and after icons.
Diagnosis
NSApplication.shared.applicationIconImage depends on how macOS looks up the application's icon. CI draws from two separate bundles, base.app and head.app, and the representation it picks can differ between them. #625 fixed this in SceneRenderer for the Accessibility guide by loading AppIcon.icns from the bundle and choosing its 256-point artwork before SwiftUI scales it. It left every other use alone. On main:
Themes/BarShare.swift:293: the Share My Bar card, drawn by theshareandshareLinkscenes (this report);Settings/AboutView.swift:16: About;Setup/SetupWindow.swift:770: the card shown after setup;App/AccessibilityGuide.swift:68(the view's default icon) and:113(the drag image);Rendering/SceneRenderer.swift:447: the guide scene's fallback for an unbundled executable.
Proposal so it stays fixed
-
Give the app icon one source that every view uses: load the bundled
AppIcon.icnsand choose a fixed representation for the size drawn, as build: draw the Accessibility guide with its bundled icon #625 does. Fall back toapplicationIconImageonly when StableBar runs without a bundle. Replace each use listed above, including the running guide and its drag image, so scenes and the app draw the same artwork. -
Add a lint check that fails when
applicationIconImageappears inSources/outside that one helper, so a new view can't bring the problem back. The project has no Swift linter, so make it a regex check inArchitectureRulesTests, next tonoUnownedReferencesandprivateAPIStaysInItsFile. It then runs withswift testlocally and in CI, with no new tool or CI step. For example, with the helper inApp/AppIcon.swift:@Test func appIconHasOneSource() throws { for file in try swiftSources() where file.path != "StableBar/App/AppIcon.swift" { #expect(file.text.firstMatch(of: #/\bapplicationIconImage\b/#) == nil, "\(file.path) draws the icon macOS looks up: use AppIcon so scenes stay identical (#895)") } }
-
Check it the way build: draw the Accessibility guide with its bundled icon #625 did: draw the
share-my-barscenes from separatebase.appandhead.appbundles and confirm the files are byte-identical. Then swap in different icon artwork and confirm the comparison still catches it.
Related
- Accessibility guide screenshots report icon changes on unrelated pull requests #624 / build: draw the Accessibility guide with its bundled icon #625: the same cause in the Accessibility guide, fixed only for that scene.
- fix: undo StableBar's changes when it's uninstalled from Settings or with Homebrew #894: the pull request where it showed up again.
Triaged by Claude Code via T3 Code (Claude Opus 5.5).
Activity
fix: take the icon's 512-pixel bitmap from the file rather than throu…
fix: keep the icon's 512-pixel bitmap as its image's only representation
M4n0x commentedon Nov 22, 2026
It happened again on #901, which only changes three lines of docs: the same 8
share-my-barscreens, with the same pixel counts as on #894's first run (715, 646, 655, 746, 749, 761, 715, 746) and the same icon areas (report). #894's second run, against an earliermain, showed none.Because the counts are identical, the two builds aren't drawing noise. Each picks one of two fixed icon representations, and which one depends on the build. Any pull request can hit it, so this blocks visual review until it's fixed.
fix: draw StableBar's bundled icon in Share My Bar and every other view
test: fail when a view draws the icon macOS looks up
chore(release): 0.19.0 [skip ci]
stablebar-releases commentedon Nov 25, 2026
🎉 This issue has been resolved in version 0.19.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀