CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

macOS widget is registered but never appears in Widget Gallery

Open Theoz001 opened this issue 8 months ago • 1 comments

Summary

CodexBar installs correctly on macOS, and the widget extension is present and registered, but no CodexBar widgets appear in the Widget Gallery at all.

Searching for CodexBar returns nothing, and there is no CodexBar section in the widget list.

Environment

  • CodexBar version: 0.18.0-beta.3
  • macOS version: 26.2 (25C56)
  • Install location: /Applications/CodexBar.app

What I checked

  • The widget extension exists:
    • /Applications/CodexBar.app/Contents/PlugIns/CodexBarWidget.appex
  • PlugInKit sees it and marks it as elected:
    • com.steipete.codexbar.widget
  • Code signing verification passes for both the app and the widget extension
  • I restarted pkd, Dock, and NotificationCenter
  • I also re-added the widget with pluginkit and re-seeded LaunchServices

Actual behavior

When opening the Widget Gallery, chronod attempts to load com.steipete.codexbar.widget, but the extension exits immediately and the gallery never shows any CodexBar widgets.

Relevant logs

chronod ... [com.steipete.codexbar::com.steipete.codexbar.widget] scheduling query
chronod ... [com.steipete.codexbar::com.steipete.codexbar.widget] performing query

containermanagerd ... [com.steipete.codexbar.widget] requesting [group.com.steipete.codexbar]: REJECTED.
Requestor's signature does not allow it to access a TCC-protected group container.
Group containers identifiers should be prefixed by requestor's team ID to allow access on this platform.

chronod ... query failed - will try lazy reload later:
Error Domain=NSCocoaErrorDomain Code=4099
"The connection to service with pid -1 named (null) was invalidated."

Theoz001 avatar Mar 15 '26 08:03 Theoz001

Fixed on current main.

The reported failure was the legacy app group group.com.steipete.codexbar being rejected by macOS. Current builds use the team-prefixed app group for both app and widget: Y5PE65HELJ.com.steipete.codexbar.

Proof from the current packaged app:

  • CodexBar.app entitlement com.apple.security.application-groups: Y5PE65HELJ.com.steipete.codexbar
  • CodexBarWidget.appex entitlement com.apple.security.application-groups: Y5PE65HELJ.com.steipete.codexbar
  • widget Info.plist includes CodexBarTeamID = Y5PE65HELJ

Relevant fixes: 2f7a6752, d4cb9677, 592cfd56.

Verified with:

  • swift test --filter 'AppGroupSupportTests|WidgetSnapshotTests|CodexBarWidgetProviderTests'

steipete avatar May 14 '26 21:05 steipete