Skip to content

Preserve Window Switcher identities while the catalog reconciles - #554

Draft
xcv58 wants to merge 1 commit into
mactools-app:mainfrom
xcv58:codex/window-switcher-catalog-reconciliation
Draft

xcv58 wants to merge 1 commit into
mactools-app:mainfrom
xcv58:codex/window-switcher-catalog-reconciliation

Conversation

@xcv58

@xcv58 xcv58 commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Problem and result

A chooser can keep a window selected while macOS updates its Accessibility and WindowServer records. This change keeps the row and its direct key associated with the same window as it moves between Spaces, and rejects stale actions when a different window replaces it.

Follow-up to #553. Related to #415.

Changes

  • Reconcile complete Accessibility and WindowServer reads before adding a row to a new chooser or changing the selection in an open one.
  • Carry the last verified Accessibility handle through a WindowServer-only transition. Check the handle captured by Close against the resolved window before pressing its Close button.
  • Preserve direct keys reserved for pending rows during automatic assignment and manual editing.
  • Verified host/helper Accessibility handoffs across Spaces remain deferred.

Verification

  • Isolated Window Switcher XCTest run with Swift 5 test compilation: 91 passed and four desktop-dependent tests skipped.
  • Injected fixtures verified that a stale Close command sends no action to a replacement window and that a late first WindowServer capture keeps a previously closed window out of the chooser.
  • make validate-changelog and git diff --check passed.

UI evidence

Live Space switching and off-Space activation remain unverified. The tests use injected Accessibility and WindowServer records.

Checklist

  • Core behavior and relevant risks are verified using existing tests, focused additions, or manual checks; results or limitations are recorded.
  • UI evidence is attached where applicable; shared components, themes, localization, and accessibility are respected.
  • User-facing documentation and changelog fragments are updated when required.
  • Plugin metadata, runtime contracts, action policies, and minimum-host compatibility agree.
  • Licensing and third-party notices are complete; no credentials, local configuration, or unrelated generated files are included.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant