Skip to content

StableBar's icon shows up as changed in Share My Bar screens on unrelated pull requests #895

Closed

Description

@M4n0x

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

  1. 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.
  2. Read the screens bot's comment: the share-my-bar scenes 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

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 the share and shareLink scenes (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

  1. Give the app icon one source that every view uses: load the bundled AppIcon.icns and choose a fixed representation for the size drawn, as build: draw the Accessibility guide with its bundled icon #625 does. Fall back to applicationIconImage only 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.

  2. Add a lint check that fails when applicationIconImage appears in Sources/ 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 in ArchitectureRulesTests, next to noUnownedReferences and privateAPIStaysInItsFile. It then runs with swift test locally and in CI, with no new tool or CI step. For example, with the helper in App/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)")
        }
    }
  3. Check it the way build: draw the Accessibility guide with its bundled icon #625 did: draw the share-my-bar scenes from separate base.app and head.app bundles and confirm the files are byte-identical. Then swap in different icon artwork and confirm the comparison still catches it.

Related

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 22, 2026
  2. M4n0x commented on Nov 22, 2026

    @M4n0x
    CollaboratorAuthor

    It happened again on #901, which only changes three lines of docs: the same 8 share-my-bar screens, 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 earlier main, 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.

  3. added 2 commits that reference this issue on Nov 24, 2026
    805e945
    71c7348
  4. stablebar-releases commented on Nov 25, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.19.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions