CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

Empty Settings window stays open in the background

Open krzemian opened this issue 1 month ago • 5 comments

v0.74.0 macOS Sequoia 15.3.2

Seeing

Image

as a permanent background window, controls are disabled. All else works fine

Tried

killall -9 CodexBar
open -a CodexBar

It didn't help

EDIT: Odd behavior noticed: if the last window I've interacted with is the dummy settings window from above (i.e. move the window), then I'm also unable to access the regular settings window, as seen here: Image

I'm also seeing the cursor pictogram changing to the horizontal resize icon

krzemian avatar Oct 10 '26 20:10 krzemian

Codex review: this still needs some work.

Summary Keep this issue open: the screenshots document a current-release Settings failure, and an open repair PR addresses the placeholder lifecycle while the reported Sequoia focus problem still needs confirmation.

Reproducibility: Current source confirms synchronous placeholder closing inside window notifications, matching kcharlan's documented AppKit ordering trace and reproduction; this review ran no app or tests, and the Sequoia-specific focus sequence remains unverified.

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

Next step Validate https://github.com/steipete/CodexBar/pull/4415 on macOS 15.3.2 by moving the placeholder and reopening Settings, then track any remaining interaction failure.

Review details

Best possible solution:

Land the existing deferred-dismissal repair and confirm that Settings remains interactive after the reported Sequoia window sequence.

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

Current source confirms synchronous placeholder closing inside window notifications, matching kcharlan's documented AppKit ordering trace and reproduction; this review ran no app or tests, and the Sequoia-specific focus sequence remains unverified.

Is this the best way to solve the issue?

Deferring the existing guard until ordering completes directly addresses the documented lifecycle failure without changing window matching or preferences policy; the additional interaction symptom should be validated against that repair.

AGENTS.md: found and applied where relevant.

Remaining risk / open question:

  • The candidate repair has not been shown to restore Settings interaction after moving the placeholder on macOS 15.3.2; that sequence could expose an additional focus defect.

Codex review notes: model internal, reasoning medium; reviewed against 4d7c82eee3dc.

Label changes

Label changes:

  • add P1: Multiple current-release reports corroborate an unclosable window, and this issue additionally reports impaired Settings interaction while the rest of the app works.
  • add impact:ux-friction: A persistent blank window and unreliable preferences access disrupt ordinary use, with relaunch failing to clear the symptom.
  • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
  • add clawsweeper:source-repro: Current issue advisory state selects this label.

Label justifications:

  • P1: Multiple current-release reports corroborate an unclosable window, and this issue additionally reports impaired Settings interaction while the rest of the app works.
  • impact:ux-friction: A persistent blank window and unreliable preferences access disrupt ordinary use, with relaunch failing to clear the symptom.
Evidence reviewed

What I checked:

  • Release report and inspected screenshots: The reporter identifies v0.74.0 on macOS 15.3.2 and says force quitting and reopening does not help. Both downloaded screenshots were inspected: one shows an empty Settings window; the other shows populated preferences with inactive-looking window controls. Static images do not establish the cursor or interaction sequence.
  • Current synchronous dismissal path: Window notifications call sweep synchronously; matching visible or previously undismissed placeholders are closed inside that callback. This matches the reentrant ordering path described in the linked instrumented trace. (Sources/CodexBar/PlaceholderSettingsWindowGuard.swift:96, 4d7c82eee3dc)
  • Separate preferences surfaces: The only SwiftUI scene contains EmptyView, while Settings commands use the AppKit controller; the guard explicitly excludes that controller's registered window. (Sources/CodexBar/CodexbarApp.swift:112, 4d7c82eee3dc)
  • Existing behavior contract: The UI documentation promises dismissal once per presentation while retaining a reusable real Settings window. (docs/ui.md:21, 4d7c82eee3dc)
  • Corroborating release reports and lifecycle trace: https://github.com/steipete/CodexBar/issues/4407 and https://github.com/steipete/CodexBar/issues/4408 describe the same unclosable placeholder on v0.74.0. In the former's discussion, kcharlan records close running inside makeKeyAndOrderFront before visibility, subsequent closes leaving the window visible, and a plain-AppKit reproduction where deferred dismissal succeeds. These are contributor observations, not a reproduction run by this review.
  • Open repair owns the central work: https://github.com/steipete/CodexBar/pull/4415 is open and unmerged. Its inspected diff defers notification-driven sweeps to the next main-queue turn, removes the duplicate launch sweep, and adds ordering regressions. Its body acknowledges that the isolated shipped-app baseline did not reproduce the reporter's launch failure. (Sources/CodexBar/PlaceholderSettingsWindowGuard.swift:96, 79a2dad88386)
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 10, 2026, 4:46 PM ET / 20:46 UTC.

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

🦞⚠️ Automatic implementation stopped before completion. Reason: The automatic implementation worker stopped before all deterministic gates completed. Open the workflow run for the exact blocker. Worker: https://github.com/openclaw/clawsweeper/actions/runs/38088776833

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

I am also experiencing this after updating to CodexBar 0.74.0.

Environment

  • CodexBar: 0.74.0 (build 166)
  • macOS: 27.0.1 (build 26A434)
  • Hardware: Apple M4 Pro (Apple Silicon / arm64)

Steps to reproduce

  1. Update CodexBar to 0.74.0.
  2. Launch CodexBar.
  3. A blank window titled "CodexBar Settings" appears immediately on startup.

Actual behavior

The Settings window is completely blank and cannot be closed. The screenshot below shows the empty content area and greyed-out window controls.

Expected behavior

CodexBar should launch without opening a blank Settings window. Any Settings window that opens should display its contents and be closable normally.

Screenshot

Blank CodexBar Settings window

wallmage avatar Oct 11 '26 00:10 wallmage

This is a regression specifically from 0.73.0 -> 0.74.0 - I just did that update and saw this behavior.

Did a brew upgrade that picked up 0.74.0 from 0.73.0 and hit the issue immediately. Manually downgrading back to 0.73.0 resolved the issue (I manually uninstalled the homebrew version and installed the universal zip since homebrew downgrades are moderately painful).

This is on an M5 MBP with Tahoe 26.6.2.

markfrommn avatar Oct 11 '26 03:10 markfrommn

Thanks @krzemian. This is the 0.74.0 regression tracked in #4407 and #4408 (it affects macOS 15 through 27): the placeholder guard closed the SwiftUI Settings window from inside AppKit's presentation call, so the blank window ended up visible, unclosable, and able to steal focus from the real Settings window as you observed. It is fixed on main by #4415 and ships in the 0.74.1 hotfix. Closing as a duplicate; please reopen if 0.74.1 still shows it.

steipete avatar Oct 11 '26 07:10 steipete