Tahoe 26.6.2: NSStatusItemScene exists in-process, but Control Center never hosts a layer-25 extra (0.56.3)
Description
CodexBar 0.56.3 launches, fetches usage, and creates an NSStatusItem / NSStatusItemScene in-process, but Control Center never hosts a layer-25 extra named codexbar-merged or com.steipete.codexbar. The menu bar icon is therefore unreachable. The official Tahoe allow-list toggle is already on, and hasShownTahoeAllowListGuidance never gets written, so the startup recovery / guidance alert never runs.
This is the same user-visible symptom as #1109 / #890 / #988 / #1077, but it still reproduces on current 0.56.3 after those recoveries landed. The new evidence is that AppKit has the scene, while the window server does not.
Environment
- CodexBar: 0.56.3 (134), official notarized ZIP (
Developer ID Application: Peter Steinberger (Y5PE65HELJ)),/Applications/CodexBar.app - Previous build on the same machine: 0.56.2 (133), same failure
- macOS: 26.6.2 (25G83)
- Bundle:
com.steipete.codexbar,LSUIElement=true - Displays:
- LG UltraFine
(0, 0, 1920x1080)(primary viewing screen) - Built-in Retina
(210, -900, 1440x900)(below the LG)
- LG UltraFine
- Menu-bar manager: iBar Pro is installed, but quitting it does not make a CC extra appear
- Enabled providers:
codex,claude,gemini - Menu-bar prefs after cleanup:
mergeIcons=1,menuBarDisplayMode=percent,menuBarShowsBrandIconWithPercent=0,menuBarHidesCritters=1(.bars, not brand-icon-percent)
What I tried
All of these left layer 25 unchanged (no codexbar-* / com.steipete.codexbar extra):
- Toggle System Settings → Menu Bar → Allow in the Menu Bar → CodexBar off/on. It stays on.
- Quit/relaunch CodexBar; upgrade 0.56.2 → 0.56.3.
- Delete leftover
NSStatusItem Visible/VisibleCC/Preferred Position Item-0…Item-9, keepVisibleCC codexbar-merged=1. - Force
NSStatusItem Visible codexbar-merged=1andPreferred Position codexbar-merged=180. Launch still rewritesPreferred Position Item-0=1007and latercodexbar-merged=1007. - Set
mergeIcons=0and pre-enableVisibleCCforcodexbar-codex/codexbar-claude/codexbar-gemini. Heap then shows 4NSStatusItemScenes; still no CC extra. - Quit iBar Pro, then launch CodexBar alone. Still no CC extra. iBar was relaunched afterwards.
- Restart Control Center once (
killall ControlCenter). Layer-25 count changed (other extras reattached); CodexBar still did not appear. - Did not loop
removeStatusItem/killall ControlCenter(the source comment about corrupting CC is noted).
Evidence
1. Process and usage are healthy
- CodexBar process stays running (
LSUIElement). - Snapshots/CLI usage work (Codex session/weekly quotas update).
- Gatekeeper:
spctl --assess= Notarized Developer ID.
2. AppKit creates the status item; the window server does not host it
heap on the 0.56.3 process with mergeIcons=1:
1 NSStatusBarWindow
1 NSStatusItemScene
1 NSStatusItemSceneSpecification
With mergeIcons=0:
4 NSStatusBarWindow
4 NSStatusItemScene
CGWindowListCopyWindowInfo(.optionAll) for the CodexBar PID only shows the SwiftUI placeholder settings scene:
owner=CodexBar name=CodexBar设置 layer=0 0x0 or 900x450
Control Center layer 25 on this machine has 50–77 extras (Clock, Sound, Wi‑Fi, Surge, WeChat, Chrome, iBar, …). None are:
codexbar-mergedcodexbar-codex/codexbar-claude/codexbar-geminicom.steipete.codexbar
Hidden-but-real extras still keep a layer-25 window (negative x or y=1080 on the laptop bar). CodexBar has no such window, so this is not “overflow / other display / iBar tray”.
3. Defaults say the extra should be shown
NSStatusItem VisibleCC codexbar-merged = 1
NSStatusItem Visible codexbar-merged = 1
NSStatusItem Preferred Position Item-0 = 1007 # recreated every launch
NSStatusItem Preferred Position codexbar-merged = 1007
hasShownTahoeAllowListGuidance = <unset>
ByHost com.apple.controlcenter.displayablemenuextras:
{"displayableInfos":[],"providerData":"<empty instanceIds NSKeyedArchive>"}
Other third-party extras still host, so an empty displayableInfos is not a global allow-list wipe. System Settings still lists CodexBar as allowed.
4. Startup recovery never fires
After a clean 0.56.3 launch, hasShownTahoeAllowListGuidance / tahoeAllowListGuidanceLastShownAt stay unset. No “CodexBar can't show its menu bar icon” alert.
That matches a gap in MenuBarVisibilityWatcher:
TahoeHiddenNoProxyrequiresexpectsVisibility && VisibleCC==true && !isVisible && !hasWindowisBlockedSnapshotrequiresisVisible && (!hasWindow || buttonWidth <= 0)
If AppKit leaves button.window / NSStatusBarWindow alive in-process (heap shows it) while Control Center never publishes a layer-25 extra, both predicates miss. The 10s startup recreate + allow-list guidance therefore never run.
MenuBarStatusItemWindowProbe only matches CG windows whose name is the autosave name (codexbar-merged). There is no such CC window here, so isTahoeBlockedProxy also does not trip.
5. Identity split on every vend
StatusItemController.makeStatusItem does:
let item = statusBar.statusItem(withLength: .variableLength)
onCreated?(item)
item.autosaveName = identity.autosaveName // "codexbar-merged"
Launch always recreates NSStatusItem Preferred Position Item-0 = 1007 even when only the merged extra should exist. Tahoe may bind the CC scene to the implicit Item-0 identity, then lose it when autosaveName is renamed.
Expected
After launch, Control Center should host a visible (or at least overflow-listed) extra for codexbar-merged, and/or startup recovery should detect “in-process scene, no CC extra” and recreate + show the Tahoe allow-list alert.
Actual
- In-process:
NSStatusItemSceneexists. - Window server: no CodexBar extra.
- Recovery: silent.
⌘,only hits the SwiftUISettings { EmptyView() }placeholder (PlaceholderSettingsWindowGuard/ #3053). With no Dock icon and no status item, the real AppKit settings window is effectively unreachable.
Related
- #1109 (closed; owner could not reproduce on 26.5 / 0.28–0.29). Reporter later saw AX items at
(-1, 950)/(1435, -1). This machine is stricter: no CC extra at all. - #1077 display-change rematerialization
- #890 Tahoe allow-list
- #988 prefs-visible but not materialized
- #805 / #849 macOS 26.4 icon restore
Suggested probes
- Treat “
NSStatusItemSceneexists butCGWindowListhas no CC extra namedautosaveName” as a startup recovery candidate, even whenbutton.window != nil. - Set
autosaveNamebeforestatusItem(withLength:), or create with a named extra so Tahoe never sees a transientItem-0. - Log
isVisible,button.window != nil,button.frame, andMenuBarStatusItemWindowProbenames at the 2s startup check.log show --predicate 'process == "CodexBar"'is often empty here because of TCC, so an on-disk startup diagnostic would help. - I can re-run any probe build on this 26.6.2 dual-display + iBar machine.
Notes / non-causes
- Not a crash, not a dead process, not missing usage data.
- Not the old 1000px brand-icon-percent layout (
menuBarShowsBrandIconWithPercentis off). - Not iBar permanently hiding the extra (
arrOfForEverHiddenhas no CodexBar; quitting iBar does not vend a CC window). - One Control Center restart was tried; it was not looped.
Codex review: this still needs some work.
Summary Keep open: official-release reports establish an inaccessible app, and the owner explicitly confirms that v0.84.0 adds diagnostics without fixing the missing icon.
Reproducibility: Release traces and the reported controlled allow-list workaround establish a credible failure, but this read-only review did not reproduce current main or establish a shared cause across variants.
Next step Collect the complete v0.84.0 production-identity startup capture before choosing recovery behavior, and plan an icon-independent Doctor entry point for affected users.
Review details
Best possible solution:
Restore reliable icon access through evidence-backed bounded recovery and provide an independently reachable Doctor window with an Open Menu Bar Settings button.
Do we have a high-confidence way to reproduce the issue?
Release traces and the reported controlled allow-list workaround establish a credible failure, but this read-only review did not reproduce current main or establish a shared cause across variants.
Is this the best way to solve the issue?
The owner's requested complete capture is the appropriate next step because identity ordering already exists, missing names are inconclusive, and successful recovery has not been demonstrated on the affected machines.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
- A complete affected-machine v0.84.0 capture has not established why recovery is skipped or unsuccessful.
- Never-hosted and hosted-but-blank reports may have separate causes.
- Recreating live items based on missing or withheld window names could disrupt healthy items and menu-bar managers.
Codex review notes: model internal, reasoning medium; reviewed against 7447bc77c249.
Label changes
Label changes:
- add
clawsweeper:fix-shape-clear: Current issue advisory state selects this label.
Label justifications:
P0: Affected users launch a running menu-bar app but cannot reach its primary interface or recover through an accessible in-product flow.impact:ux-release-blocker: Official-release reports describe failed first useful access despite normal relaunching and an enabled allow-list toggle, with further diagnosis requiring terminal commands or maintainer help.
Evidence reviewed
Acceptance criteria:
- Obtain complete production-identity v0.84.0 startup, recovery, and settled records following docs/status-item-diagnostics.md.
- Compare healthy and failing geometry with actual rendered icon pixels and menu access on the affected machine.
- Establish a failing regression for the selected failure mode before opening a repair PR.
- swift test --filter 'MenuBarVisibilityWatcherTests|StatusItemHostingDiagnosticsTests|StatusItemCreationOrderingTests|MenuBarStatusItemPlacementPreservationTests'
- make check
What I checked:
- Owner explicitly retains the unresolved issue: The November 14 owner comment confirms that v0.84.0 improves recovery diagnostics rather than fixing the missing icon, and requests complete startup, recovery, and settled records: https://github.com/steipete/CodexBar/issues/3377#issuecomment-6870284616.
- Live-window recovery boundary is deliberate: A visible item is blocked when its button or window is missing or its button width is nonpositive; a live positive-width window does not qualify merely because a named server record is absent. (
Sources/CodexBar/Menu/MenuBarVisibilityWatcher.swift:86, 7447bc77c249) - Suggested identity ordering already exists: The shared factory creates at zero width, assigns the stable autosave name before registration, and then applies normal sizing; its comment explains that AppKit has no named factory. (
Sources/CodexBar/StatusItem/StatusItemController+StatusItemVending.swift:26, 7447bc77c249) - Tests preserve the distinction between missing windows and withheld names: Coverage admits a missing AppKit window to startup recovery while explicitly rejecting missing server records alone as grounds for recreating a live item. (
Tests/CodexBarTests/StatusItemHostingDiagnosticsTests.swift:60, 7447bc77c249) - Released diagnostic work does not own a hosting fix: https://github.com/steipete/CodexBar/pull/4945 explicitly preserves recovery predicates and adds host counts, startup age, and recovery decisions; its merge commit is contained in v0.84.0. (
Sources/CodexBar/Menu/MenuBarVisibilityWatcher.swift:261, c37b29d52c16) - One subtype has a controlled reported workaround: darknate reports that enabling another application's conflicting allow-list row immediately restored the production icon; https://github.com/steipete/CodexBar/issues/1945 describes an earlier cross-app mapping variant. The linked raw gist could not be independently inspected: GitHub returned HTTP 403 and browser access failed.
How this review workflow works
- ClawSweeper keeps one durable marker-backed review comment per issue or PR.
- Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
- A fresh review can be triggered by eligible
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch. - PR/issue authors and users with repository write access can comment
@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only. - Maintainers can also comment
@clawsweeper reviewto request a fresh review only. - Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
- Maintainers can comment
@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.
Reviewed November 14, 2026, 12:38 AM ET / 05:38 UTC.
Additional reproduction on 0.59.0 (142) — the failure is still there, but it presents differently than described in the original report: the layer-25 window record is present in every state I sampled, while the rendered pixels inside those bounds come and go. So on 0.59.0, checking the window-server record cannot distinguish healthy from broken.
Environment: macOS 26.6.2 (25G83), MacBook Pro built-in display (1512×982, single display), no third-party menu bar manager, mergeIcons=1, NSStatusItem VisibleCC codexbar-merged=1, allow-list toggle on, notarized build at /Applications/CodexBar.app.
What I observed across quit → relaunch cycles of the same 0.59.0 binary
| State | codexbar-merged record (CGWindowList, layer 25) |
Pixels inside the recorded 94×33 bounds |
|---|---|---|
| Icon visible to the user | present (597,0 94×33) | 14–17 rows of bright pixels (white text) |
| Icon not visible to the user | still present (597,0 94×33) | flat background — 0 bright rows |
- The state is intermittent in both directions, including without a process restart: one instance went not-rendered → rendered on its own after a few minutes; another was rendered right after launch, not rendered ~1–2 minutes later, then rendered again. So this is not a per-launch coin flip that stays fixed — something re-rolls it during a launch.
- Once a launch is in the rendered state, it is stable: 5 minutes of 2-second pixel sampling stayed visible (143/143 samples), while the app kept sending per-minute countdown updates to Control Center (
NSSceneFenceActionevery ~60s in the unified log). Per-minute scene updates don't break it once hosted. - In one not-visible sample the icon's bounds were not flat: ~2,400 mid-gray pixels (luminance 100–200) over the near-black bar, where an adjacent empty menu-bar region sampled seconds later had 2 unique luminance levels and zero mid-gray pixels. That sample looks like content composited dark-on-dark (wrong appearance), not a missing window. I can't say yet whether all not-visible samples are this variant or some are truly unhosted.
User-visible symptom when not rendered matches this issue exactly: the app looks dead, and "opening" it again does nothing — the process is alive the whole time (LSUIElement, so a second open just re-activates the hidden instance).
Cheap verification oracle
The original report's diagnostics (heap + window record) can't see this on 0.59.0. Pixel-sampling the recorded bounds can:
# capture the status item's recorded bounds (adjust to your CGWindowList output)
screencapture -x -R"590,0,110,36" /tmp/icon.png
# check for rendered content vs the flat menu-bar background
# (e.g. PIL, grayscale: rows where max luminance > 150 = rendered;
# 2 unique levels = empty; many mid-gray pixels = composited dark-on-dark)
If startup-recovery logic is considered for this, "window record exists" cannot be the health signal — on 0.59.0 the record exists in the broken state too. A recovery heuristic based on rendered content inside the bounds (with a re-add/removeStatusItem retry on timeout) would cover both the original never-hosted case and this rendered-nothing/dark-on-dark case.
Workaround
killall CodexBar && open -a CodexBar restored a visible icon within 1–2 attempts in my runs. It also self-healed once without any restart, so waiting a few minutes can work too.
Thanks for the controlled 0.59.0 comparison. The persistent window record and the changes while the same process is running point to a different failure mode from a status item that is never hosted. A recovery rule based only on a missing window would miss this case.
Which menu-bar layout and provider are selected, and is the high-contrast menu-bar option enabled? Those details will let us reproduce the same rendering path and check image/template handling across appearance and refresh changes. Please share only the layout/settings details; no account information is needed.
Here are the exact layout, provider, and display configuration details from my environment (running CodexBar 0.59.0 on macOS 26.6.2 (25G83)):
1. Menu Bar Layout & Display Settings
- Merge Icons: Enabled (
mergeIcons = 1, usingcodexbar-merged) - Display Mode: Percent (
menuBarDisplayMode = percent) - Brand Icon with Percent: Disabled (
menuBarShowsBrandIconWithPercent = 0) - Refresh Frequency: 5 minutes (
refreshFrequency = fiveMinutes) - Hide Critters: Enabled (
menuBarHidesCritters = 1)
2. Selected Providers
- Enabled providers:
codex,claude, andgemini.
3. Contrast & Appearance Options
- CodexBar High Contrast on Inactive Displays: Enabled (
menuBarHighContrastOnInactiveDisplays = 1) - macOS System High Contrast: Disabled (
increaseContrastis not set / standard contrast) - System Appearance: Dark Mode (
AppleInterfaceStyle = Dark)
4. Display Setup
- Dual displays:
- Main: External 4K display (LG UltraFine, 3840×2160, UI scaled to 1920×1080)
- Secondary: Built-in MacBook Retina display (2560×1600)
I tested a signed, isolated native host on macOS 26.6.2 (25G83) with the production status-item controller, dark appearance, high contrast enabled, synthetic Codex/Claude/Gemini usage, and merged icons. The diagnostic is in #3572; no recovery behavior was changed.
The reported legacy icon preferences resolve to plain bars in this build; those rendered and had a hosted Control Center window. I also exercised an explicit percent-only layout. Across about 130 seconds, all 11 successfully matched window captures showed the synthetic 75% text (274 bright pixels in each capture). Two samples had no exact AppKit/window-server geometry match and were treated as inconclusive, not as proof of an unhosted icon.
This did not reproduce missing or dark-on-dark content. It also does not reproduce the reporter's dual-display/inactive-display setup. Keeping this open; the evidence does not justify adding a recreation loop or treating a window-record mismatch alone as failure.
A repeat with the improved geometry diagnostic on the final notes branch caught an initial offscreen AppKit button frame at {0, -22, 34, 22} that settled into its hosted position during the next capture phase. Complete Cocoa button/window and Quartz server bounds are now recorded in #3572. This transient recovered; it does not reproduce the persistent never-hosted state. Another existing extra shared the autosave name, so name-only server matches are insufficient.
Current main includes #3825’s zero-width creation, stable-name assignment, and normal-sizing sequence. The later thread evidence also describes a separate case where the window record exists but pixels disappear; the previous isolated maintainer test did not reproduce it. A missing-window recovery rule would not cover both cases. Keeping this open for current-build dual-display/appearance reproduction with matched bounds and rendered-content evidence.
Current source still does not classify a live AppKit window with no matching named server record as blocked. However, the later 0.59.0 evidence also shows invisible content while that record remains present, and the signed isolated experiment did not reproduce the failure. A missing-name heuristic would not establish a fix. Keeping this open for a matched AppKit/Quartz geometry and rendered-content capture on the affected display and appearance setup.
Another reproduction on 0.66.0 (156): Control Center never creates a hosted window at all
Environment:
- CodexBar 0.66.0 (156), official notarized ZIP (
Y5PE65HELJ); also reproduced on 0.60.3 - macOS 26.6.2 (25G83)
- Bartender 6 installed; quitting it makes no difference (see below)
- System Settings → Menu Bar → Allow in the Menu Bar → CodexBar is on
The display setup doesn't matter. It reproduces with three displays attached (built-in Retina with notch, a 3440×1440 ultrawide as main, and a third display placed to the left at negative x) and equally with only the built-in display connected — the icon is not visible in either case.
What I see: CodexBar launches and stays alive with an idle main thread (NSApplication run → mach_msg, no hang, no crash reports, CPU 0%), but its menu bar icon never appears.
How I checked: on Tahoe the status item windows are owned by Control Centre, so I diffed the layer-25 windows owned by Control Centre (CGWindowListCopyWindowInfo) immediately before and ~15 s after launching CodexBar.
| run | layer-25 CC windows before → after launch | new windows |
|---|---|---|
| 0.60.3, existing prefs | 141 → 141 | 0 |
| 0.60.3, prefs + both group containers moved away (fresh start) | 141 → 141 | 0 |
| 0.66.0, fresh prefs | 141 → 141 | 0 |
| 0.66.0, Bartender quit | 129 → 129 | 0 |
Control test with Maccy on the same machine: quitting it drops the count 141 → 138, relaunching raises it to 144 (one window per display), so the method does pick up a normally hosted item.
So unlike the 0.59.0 report above (window record present, pixels missing), here Control Centre never creates the window record in the first place.
Other details:
- After a fresh start the prefs contain
NSStatusItem VisibleCC codexbar-merged = 1, andhasShownTahoeAllowListGuidanceis never written, so the guidance/recovery path doesn't run - The only window CodexBar itself owns is a 900×450 layer-0 window, never on screen
Happy to run a diagnostic build or collect anything specific.
Thanks @darknate for the controlled window-count comparisons; that is a different failure from the earlier hosted-but-blank case, and it is now the best evidence on this issue. Reading the current code did not explain it: the status item is created on the main actor after launch completes and gets its stable autosave name before sizing, so there is no obvious zero-length or duplicate-identity path. Rather than guess, #4012 (landed on main, ships in 0.67.1) adds an opt-in startup trace that records status-item creation, naming, sizing, activation policy, and Control Center's layer-25 windows as JSON, with no credentials or provider content.
Once 0.67.1 is out (or if you build from main), please quit the running instance and launch the app once like this, then wait at least 20 seconds:
CODEXBAR_STATUS_ITEM_DIAGNOSTICS=1 /Applications/CodexBar.app/Contents/MacOS/CodexBar > "$HOME/Desktop/codexbar-status-items.jsonl"
Attach that file (it contains only window numbers, frames, flags, and counts) together with whether the icon appeared, whether Bartender was running, and whether the Allow in the Menu Bar toggle stayed on. That will show whether the item is intended-visible and sized normally while Control Center still refuses to host it, which decides the next experiment. Keeping this open until then.
Thanks — trace from 0.68.0 (159) (0.67.1 never shipped; 0.68.0 includes the diagnostics): codexbar-status-items.jsonl
- Icon appeared: no
- Bartender: quit before launch
- Allow in the Menu Bar → CodexBar: stayed on
- Displays: same three-display layout as my earlier report (3440×1440 main, built-in Retina at x=3440, 1440×2560 at negative x)
What the trace shows:
- The item goes through
created → named (codexbar-merged) → sized → rendered, ends at 21×22 withvisible=true, and its AppKit window frame settles at{{3419, 1418}, {21, 22}}(top-right of the main screen). Startup check evidence is all green:expected=true, visible=true, button=true, window=true, screen=true, currentScreen=true, width=21.0. - Control Center's layer-25 list stays at 126 windows for the whole run,
namedMatches: []. My own before/after diff of CC's layer-25 windows around the launch: 0 changes. buttonWindowis4294967296(2³²) in every record fromcreatedon — doesn't look like a real WindowServer window number, which may be relevant.
So AppKit considers the item intended-visible and normally sized, while Control Center never hosts it. Happy to run the next experiment.
🦞🔧 ClawSweeper is automatically building a fix for this issue.
The issue review finished and no active implementation pull request was found.
Automatic implementation progress:
- State: Queued
- Detail: Review complete; no active implementation PR was found. The Codex implementation worker is queued.
- Run: https://github.com/openclaw/clawsweeper/actions/runs/36415364735
- Updated: 2026-09-28T11:27:27.116Z
- Opt out: add
clawsweeper:manual-onlyorclawsweeper:human-review.
Result: implementation skipped.
- Reason: no planned fix actions
- Worker: https://github.com/openclaw/clawsweeper/actions/runs/36415779816
- Updated: 2026-09-28T11:31:57.622Z
Thanks @NicholasLea and @darknate. I read the raw 0.68.0 trace: all eight window queries succeeded, the same 126 Control Center layer-25 window numbers remained through the settled sample, and the item reached a visible 21×22 AppKit frame. All 126 server-window names were unavailable, so namedMatches: [] alone cannot identify a failed item. Current main already names items before sizing and retains bounded recovery safeguards. This still does not establish why hosting failed or that recreation restores it. Keeping this open. The next useful experiment is a matched healthy/failing capture on the affected machine, followed by a single instrumented recovery attempt in an isolated signed diagnostic build, checking placement and rendered output.
Root cause on my machine (0.68.0 (159), macOS 26.6.2): Control Center blocks the item through its "Allow in the Menu Bar" list — under another app's row. Enabling that app in System Settings → Menu Bar fixed it instantly.
Control Center's log
Unified log, process == "ControlCenter", --level debug, during a launch of the unmodified /Applications/CodexBar.app (Bartender quit):
[AppKit:StatusBar] hosting client 100000000[13103-com.steipete.codexbar] for scene 6B2C384C-…
[controlcenter:appStatusItems] Host properties initialized; (bid:com.steipete.codexbar-Item-0-13103). State(applicationItem: true, clientRequestsVisibility: true, neverClip: false)
[controlcenter:appStatusItems] Host id changed from (bid:com.steipete.codexbar-Item-0-13103), to (bid:com.steipete.codexbar-codexbar-merged-13103)
[controlcenter:appStatusItems] Adding displayable items for status items; [(bid:com.steipete.codexbar-Item-0-13103)]
[defaults] looked up value <private> for key trackedApplications in CFPrefsPlistSource (Domain: group.com.apple.controlcenter, …)
[controlcenter:appStatusItems] Moving host to blocked list; (bid:com.steipete.codexbar-codexbar-merged-13103)
The item is accepted, named and sized; then CC reads trackedApplications and moves the host to its blocked list. No layer-25 window is ever created, while AppKit reports the item visible.
Why
~/Library/Group Containers/group.com.apple.controlcenter/Library/Preferences/group.com.apple.controlcenter.plist, key trackedApplications (nested binary plist). Rows are {location, menuItemLocations[], isAllowed}. On my machine:
{"location": "com.steipete.codexbar", "menuItemLocations": ["com.steipete.codexbar"], "isAllowed": true}
{"location": "com.openai.codex", "menuItemLocations": ["com.openai.codex", "com.steipete.codexbar"], "isAllowed": false}
com.openai.codex is /Applications/ChatGPT.app, switched off in Allow in the Menu Bar. CodexBar's bundle ID sits in its row, and the blocked row wins over CodexBar's own allowed row.
A bundle gets into another app's row via the responsible process at launch: every test launch below was started from my terminal, and afterwards the terminal's row listed com.steipete.codexbar, com.steipete.codexbar.exp3377 and the test app. So CodexBar was once started as a child process of ChatGPT.app, got attributed to it, and went down with it when ChatGPT was switched off. Resetting CodexBar's own prefs can't touch this.
Experiments
Same harness for every run: Bartender quit, CC layer-25 windows diffed before/+20 s, CODEXBAR_STATUS_ITEM_DIAGNOSTICS=1.
| Launch | CC window for the item |
|---|---|
/Applications/CodexBar.app, terminal, ×2 |
none |
/Applications/CodexBar.app, temporary LaunchAgent |
none |
Same binary re-signed as com.steipete.codexbar.exp3377, same name, same #3825 order |
hosted, rendered |
Small test app, autosave name codexbar-merged, #3825 order |
hosted, rendered |
/Applications/CodexBar.app after switching ChatGPT on |
hosted, rendered; row now isAllowed: true |
Only the bundle ID changes the outcome.
What CodexBar could do
- Detect it. The plist is readable by a non-sandboxed app. If
com.steipete.codexbarappears inmenuItemLocationsof a row withisAllowed == false, the icon will not be hosted — show the row's app name and point to System Settings → Menu Bar → Allow in the Menu Bar. The existing Tahoe allow-list guidance never fires here because AppKit sees nothing wrong. - Don't get adopted. Direct
execof the binary inherits the parent's responsibility; a LaunchServices launch does not (verified: the test app started withopen -afrom the terminal got its own row). If the responsible pid ≠ own pid, relaunch viaNSWorkspace.openApplicationand exit.
Notes on the diagnostics
namedMatchesonly works with Screen Recording permission; without itkCGWindowNameis withheld from every CC window, so[]carries no information.buttonWindow = 4294967296is normal on Tahoe; the test app reports the same for a correctly hosted item.
Everything is in this gist — harness, test app source, per-run traces and window-list diffs, filtered Control Center log for the blocked and the hosted runs, relevant trackedApplications rows before/after: https://gist.github.com/darknate/334da7cb5479ed86bdba936b0beb57a3
Clean-install reproduction on macOS 26.6.2 (25G83): item is created and sized but never positioned ({0,0}), and the state survives full app removal + reboot
Environment: macOS 26.6.2 (25G83), single built-in display, no third-party menu bar manager, notarized release build installed at /Applications/CodexBar.app.
Versions observed: 0.67.0, 0.80.0, 0.82.0 — identical failure on all three.
Symptom: process runs normally, no crash and no crash reports; the Settings window object exists but is never displayed (onscreen=false in a window-server query); open -a CodexBar only re-activates the invisible instance; no menu bar icon at any point.
Diagnostics (CODEXBAR_STATUS_ITEM_DIAGNOSTICS=1, 0.82.0, first launch after a clean install, empty preferences):
created visible=true len=0 frame={{0, 0}, {0, 22}} win=nil
named visible=true len=0 frame={{0, 0}, {0, 22}} win=nil
sized visible=true len=-1 frame={{0, 0}, {16, 22}} win=nil
rendered visible=true len=-1 frame={{0, 0}, {34, 22}} win=nil
startup-check visible=true len=-1 frame={{0, 0}, {34, 22}} win=nil
settled visible=true len=-1 frame={{0, 0}, {34, 22}} win=nil
controlCenter.layer25Count was 0 in every record (note: this process has no Screen Recording permission, so that count may be uninformative).
Independent check from a separate process with a window-server query: ControlCenter owns layer-25 windows for the built-in items (Wi-Fi, Bluetooth, Battery, Clock, BentoBox, one unnamed third-party item) but none for this bundle ID. The AppKit button frame stays at the origin, i.e. the item is never positioned.
Not a space constraint: in icon-only layout the item is 34 px wide and the menu bar had roughly 200 px of free space to the left of the right-hand cluster at the time of the test.
Attempts that did not change the state (each one ends in the same {0,0} frame):
killall CodexBar+open -a CodexBar, several cycleskillall ControlCenter, then relaunch the app- Full macOS reboot
- Upgrade 0.67.0 → 0.80.0 → 0.82.0, then downgrade back to 0.67.0 (0.80.0 had been installed automatically via Sparkle)
mergeIcons=1merged item (~130 px) andmergeIcons=0(six separate items) — all six items stayed at{0,0}- Icon-only layout (28–34 px) — same
defaults delete com.apple.controlcenter HasAttemptedMenuBarWorkflowMigration+killall ControlCenter, to force the menu bar workflow migration to run again- Full uninstall and reinstall: quit,
defaults delete com.steipete.codexbar, removed~/.config/codexbar, the preferences plist, caches, HTTP storages, Application Support, the app group container and the log directory, unregistered the bundle from LaunchServices → reboot (the login-item record was dropped by the system) → fresh install from the released zip, first launch with empty preferences
The app's row was enabled in System Settings → Menu Bar for the whole time (NSStatusItem VisibleCC codexbar-merged = 1 before the wipe).
Conclusion: this looks like the "never hosted" variant rather than the "hosted but not rendered" one — AppKit creates and sizes the item, but ControlCenter never assigns it a position, and the state survives a full app removal plus reboot. That suggests the blocking record lives outside the app (ControlCenter/StatusKit state keyed by bundle identifier) and is not reachable from the app side.
Two questions that would help me help you debug:
- Is there a supported way to reset that per-bundle-ID menu bar record (short of resetting all ControlCenter preferences), or something I can delete to force a clean re-registration?
- I can run a maintainer-signed diagnostic build on this machine and share the JSONL if that would help — this machine reproduces the failure reliably (100% of launches), so it would be a good target for the diagnostics in
docs/status-item-diagnostics.md.
Follow-up from another affected machine with current versions.
Environment
- macOS 26.7.1 (25G241)
- Apple Silicon (arm64)
- CodexBar 0.82.0 (175), git 7749f7b
- Installed at /Applications/CodexBar.app
- “Allow in the Menu Bar” is enabled
- No third-party menu-bar manager is running
Reproduction
- Launch CodexBar normally.
- Confirm the process remains alive.
- Confirm no CodexBar icon is visible in the menu bar.
- Restart ControlCenter and SystemUIServer.
- The icon is still absent.
- Reinstalling, relaunching, and removing quarantine metadata did not change the result.
CodexBar status-item diagnostics
Launched with CODEXBAR_STATUS_ITEM_DIAGNOSTICS=1. The final settled snapshot reports:
identity=codexbar-merged
visible=true
button=true
window=true
screen=true
currentScreen=true
width=34.0
windowFrame={{1478, 960}, {34, 22}}
The same snapshot reports:
controlCenter.layer25Count=30
controlCenter.namedMatches=[]
controlCenter.unnamedCount=30
So CodexBar believes the status item is valid, sized, and attached to the current screen, but ControlCenter has no matching CodexBar-hosted item. The user-visible icon is absent.
The app preferences also contain:
NSStatusItem VisibleCC codexbar-merged = 1
hasRepairedHiddenStatusItemVisibilityDefaults = 1
This appears to be the same boundary described in this issue: AppKit creates the item in-process, but the macOS menu-bar host does not publish/host it.
I can provide the full diagnostic JSONL and a cropped menu-bar screenshot if useful.
Thanks @Bright-xxxxxx and @andykalyakin for the 0.82.0 reports. They describe different states.
A visible item with no AppKit window qualifies for the existing startup recovery during its 10-second window, but the shortened capture doesn't show why recreation didn't happen or why it failed. #4945 (c37b29d52c1) adds that detail to the diagnostics, and it ships in the next release. They now record the actual eligibility and elapsed startup time, then a sample right after recreation, followed by the existing settled sample.
A normal live window whose server names are all withheld stays inconclusive. An empty list of named matches isn't a reason to destroy that item, so it isn't destroyed. The update doesn't reset preferences or change the app's identity.
I'm keeping this open for a capture from the affected production build, so a diagnostic from the next release would be the most useful thing to attach.
Keeping this open: 0.84.0 adds the missing recovery diagnostics, but that is not a fix for the missing icon. The latest captures still describe two different states: a missing AppKit window, and a live window whose host names are withheld. The most useful next capture is the complete 0.84.0 startup JSONL using the status-item diagnostic instructions, including startup-check, any startup-recovery-check, and settled. Please note whether the icon appeared and inspect the file before sharing. An empty named-match list alone is not enough to justify destroying a live item. Thanks @Bright-xxxxxx and @andykalyakin.