CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

Empty CodexBar Setting Window

Open rnd0110 opened this issue 1 month ago • 8 comments

It never happened but since last night it suddenly appears an extra empty window. I tried clean all documents and reinstalled it, but the window still there cannot be close or minimize.

Image

CodexBar v0.74, MacBook golden gate 27.0.1

rnd0110 avatar Oct 11 '26 10:10 rnd0110

Codex review: this still needs some work.

Summary Keep this issue open under repository policy: the reported v0.74.0 defect is fixed on main, but the hotfix is not yet published.

Reproducibility: There is strong release-specific evidence from the screenshot, corroborating official-build reports, and kcharlan's AppKit trace, but no current-main reproduction was run; main already contains the targeted repair.

Regression provenance Possible regression — suspected (failure trace). No predecessor PR is attributed.

Maintainer decision needed

  • Question: Should the already merged placeholder-window repair ship now in the announced 0.74.1 hotfix?
  • Recommendation: Publish the planned hotfix: Deliver the existing repair through the normal update path and request confirmation on macOS 27.0.1.
  • Why: The repair is merged and the owner announced a hotfix, but GitHub still lists v0.74.0 as the latest published release.

Next step Deliver the announced hotfix containing https://github.com/steipete/CodexBar/pull/4415 and obtain confirmation that the reporter's blank window disappears on macOS 27.0.1.

Review details

Best possible solution:

Publish the existing placeholder-dismissal repair through the normal updater and confirm that launching and reopening Settings no longer leaves an empty window.

Do we have a high-confidence way to reproduce the issue?

There is strong release-specific evidence from the screenshot, corroborating official-build reports, and kcharlan's AppKit trace, but no current-main reproduction was run; main already contains the targeted repair.

Is this the best way to solve the issue?

The merged deferred-dismissal repair addresses the documented ordering failure while retaining real preferences, Dock policy, and dismissal after re-presentation; another repair PR is unnecessary without evidence of failure on the fixed build.

AGENTS.md: found and applied where relevant.

Remaining risk / open question:

  • The reporter's actual configuration has not been exercised with the fixed application; the merged PR explicitly says its isolated baseline did not reproduce the reported launch failure.

Codex review notes: model internal, reasoning medium; reviewed against 2786ed90e523; fix evidence: commit 0b1b74ea8bc9, main fix timestamp 2026-10-10T20:46:07Z.

Label changes

Label changes:

  • add P1: Multiple official v0.74.0 reports establish a recurring unclosable window, and the latest published release still lacks the merged repair.
  • add impact:ux-friction: The unwanted window disrupts ordinary desktop use while separate populated preferences remain available.
  • add issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.
  • add clawsweeper:not-repro-on-main: Current issue advisory state selects this label.
  • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
  • add clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.

Label justifications:

  • P1: Multiple official v0.74.0 reports establish a recurring unclosable window, and the latest published release still lacks the merged repair.
  • impact:ux-friction: The unwanted window disrupts ordinary desktop use while separate populated preferences remain available.
Evidence reviewed

What I checked:

  • Release report and screenshot: The full issue reports v0.74 on macOS 27.0.1 and unsuccessful reinstall and cleanup. The downloaded screenshot shows an extra empty CodexBar Settings window beside populated preferences; static imagery cannot establish close-button behavior.
  • Fix present in current source: Notification-driven sweeps now run on the next main-queue turn, after AppKit ordering finishes. Matching excludes the registered real Settings window. (Sources/CodexBar/PlaceholderSettingsWindowGuard.swift:96, 2786ed90e523)
  • Merged repair and regression coverage: https://github.com/steipete/CodexBar/pull/4415 merged on October 10. Its commit replaces synchronous notification dismissal with deferred dismissal; current tests cover ordering, repeated updates, re-presentation, and an opt-in native AppKit scenario. This review ran no tests. (Tests/CodexBarTests/PlaceholderSettingsWindowGuardTests.swift:9, 0b1b74ea8bc9)
  • Corroboration and maintainer judgment: In https://github.com/steipete/CodexBar/issues/4407, kcharlan documents the reentrant AppKit close sequence and Pedro Zimmermann Soares reports the official release failing with downgrade recovery. Peter Steinberger confirms the merged repair and planned 0.74.1 hotfix; in https://github.com/steipete/CodexBar/issues/4418 he identifies the same defect and closes that report as a duplicate.
  • Hotfix remains unpublished: GitHub's latest published release is v0.74.0; the maintainer's statement that the fix ships in 0.74.1 is a release plan, not evidence of a published hotfix. (c2f22ccf8751)
  • Feature history and policy: The full root AGENTS.md was applied. History identifies Elijah Friedman's initial placeholder guard, Harjoth Khara's retained-window deduplication, and Peter Steinberger's Dock-policy and deferred-dismissal changes. Missing historical blobs prevented local blame and release diff; authenticated commit patches supplied the relevant history instead. (AGENTS.md:1, 2786ed90e523)
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-review comments, 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-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

Reviewed October 11, 2026, 6:04 AM ET / 10:04 UTC.

clawsweeper[bot] avatar Oct 11 '26 10:10 clawsweeper[bot]

Same for me. Downgrade to 0.73.0 helped.

mkurczewski avatar Oct 11 '26 11:10 mkurczewski

3. Same for me. Downgrade to 0.73.0 helped.

Same, downgrade to 0.73.0 solved this

AugustOxQ avatar Oct 11 '26 12:10 AugustOxQ

The same bug after updating to v0.74.0 on macOS 27.

Image

ZhanZiyuan avatar Oct 11 '26 15:10 ZhanZiyuan

Same here.

martinroger avatar Oct 11 '26 17:10 martinroger

Same here

dpardo2183 avatar Oct 11 '26 19:10 dpardo2183

same here

Yafei-Liu99 avatar Oct 11 '26 21:10 Yafei-Liu99

Thanks @rnd0110 and everyone who confirmed. This is the 0.74.0 regression tracked in #4407 and #4408, and it is fixed in CodexBar 0.74.1, released last night: https://github.com/steipete/CodexBar/releases/tag/v0.74.1. "Check for Updates" in CodexBar (Sparkle) or brew upgrade --cask codexbar installs it; no need to stay on 0.73.0.

Root cause, for the curious: the guard that keeps SwiftUI's empty Settings scene out of the Dock closed that window from inside AppKit's own presentation call, so the close ran before the window was shown and the window stayed visible and unclosable. 0.74.1 defers the dismissal until presentation finishes (#4415). If the blank window still appears after updating to 0.74.1, please reopen with your macOS version and whether it shows on every launch.

steipete avatar Oct 12 '26 00:10 steipete