Repository navigation
feat: report which windows a menu command, launch or open created - #56
Merged
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #17.
When two agents run File → New in the same app, neither can tell which new window is its own.
desktop_menu,desktop_launchanddesktop_opennow report the windows of the receiving process that appeared after the request was sent.Change
CGWindowListCopyWindowInfo(.optionAll), on and off screen, all processes). The new code is increated.swift.desktop_windowsrow, including itstarget.created_windowsis{ windows, attribution, note }:exclusive: exactly one window appeared.ambiguous: several appeared, and nothing says which came from this request.none: nothing appeared in time.exclusive. It is "very likely", not proof. Another agent's window can appear in the same interval while ours appears later. The note says so, and suggestsdesktop_inspectwhen it matters.action, next to the refreshed inventory.actionResult's overflow fallback keepscreated_windows.desktop_key(Command-N) once it is.Tests
npm run checkpasses, and the native build is green on top of 6f2391b. The repo has no client-side Swift tests.Live checks (pending: screen locked)
While the session is locked, menu, launch and open refuse before dispatch, so
created_windowscan't be produced here. To run:desktop_menu→ one window,exclusive. Its target inspects.ambiguousif both windows land in its interval.desktop_menuFormat → Font → Show Fonts (a panel) → shows the panel ornone, depending on whether the inventory lists panels. Record which.desktop_launchof a not-running app that opens a window (TextEdit with no restore) →exclusive, ornoneif the open panel is slow. Record the timing.desktop_openof a .txt in TextEdit, already running → the new document window,exclusive.desktop_launchof an app that is already running with no new window →none, or the field is absent when nothing was dispatched (confirmedNoChange).🤖 Generated with Claude Code