Skip to content

cannot close the app, broken dock icon - size is 0/nearly invisible #1591

Closed

Description

@Toumash

Description

cap icon is ultra small invisible in the dock

Reproduction

  1. Run cap
  2. Close cap
  3. See the icon
Image
  1. Force quit cap from activity monitor
  2. icon disappears
Image

Additional Context

  • Cap version: 0.4.5
  • Operating system, version: macos 15.7.3 (24G416)
  • Device (optional): macbook pro m4

cap-desktop.log.2026-02-09 copy.log

Image

Activity

  1. added
    bug
    on Feb 9, 2026
  2. linear commented on Feb 9, 2026

    @linear
  3. tembo commented on Feb 9, 2026

    @tembo

    Thanks for the detailed report with screenshots and logs.

    Looking at the codebase and related issues, here's some relevant context:

    Related Issues:

    • This appears similar to Crash upon initial download #1556 ("Crash upon initial download") where the user reported "The dock icon disappears as if it's doing an auto update behind the scenes." That issue was related to a startup crash in libavcodec on M1 Macs running macOS Sonoma, which was resolved separately.
    • Hide Cap from MacOS App Switcher #654 addressed hiding Cap from the macOS App Switcher via the "Hide dock icon" setting.

    Relevant Code:
    The macOS window management is primarily handled in:

    • apps/desktop/src-tauri/src/windows.rs - Main window lifecycle and building
    • apps/desktop/src-tauri/src/platform/macos/delegates.rs - NSWindow delegate handling for traffic lights and window events
    • apps/desktop/src-tauri/src/platform/macos/mod.rs - Window level and corner radius handling

    Recent Changes:
    PR #1399 (merged Jan 3, 2026) refactored the windowing system significantly - renamed CapWindowId to CapWindowDef and ShowCapWindow to CapWindow, removed the custom macOS NSWindow delegate in favor of Tauri's native traffic_light_position API, and upgraded Tauri to 2.9.3. This PR also notes that macOS 26+ handling will need additional work in a follow-up PR.

    The invisible/zero-size dock icon when the app is "closed" (but still running in background) suggests the app may be transitioning to an accessory activation policy incorrectly or there's an issue with how the app icon is being rendered when all windows are hidden but the app process persists.

    The attached log file would be helpful to review for any errors during the close/minimize flow.

  4. Toumash commented on Apr 11, 2026

    @Toumash
    Author

    ok it works now

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions