Skip to content

fix: enable clipboard image export, release a paste when its window closes, and skip ordered-out windows in window_appears - #125

Merged
iamnbutler merged 2 commits into
mainfrom
fix/clipboard-export-paste-release-spotlight
Oct 17, 2026
Merged

iamnbutler merged 2 commits into
mainfrom
fix/clipboard-export-paste-release-spotlight

Conversation

@iamnbutler

Copy link
Copy Markdown
Contributor

Fixes the #96, #99 and #89 failures from the full live check against the installed 0.13.1.

#96: save_path refused (CLIPBOARD_WRITE_FAILED / not supported). peekaboo-clipboard-image-export.patch added clipboardImageExport, but not to Peekaboo's remoteDefaultAllowlist. The embedded host intersects its allowed operations with the embedded allowlist built from that list, so it dropped the export. New patch peekaboo-clipboard-image-export-allowlist.patch adds it. src/build.ts now fails the build if any operation in runtime.swift's allowedOperations would be dropped. The export was the only one.

#99 and the stuck clipboard. The harness pasted an image into an .rtf TextEdit document. TextEdit opened its "Convert to RTFD?" sheet, the paste never landed, and the paste reservation then refused every clipboard write until TextEdit quits. That broke the harness's own clipboard writes and its restore. New patch peekaboo-paste-window-release.patch also releases the reservation when the receiver window is gone, or its number now belongs to another process. The harness now pastes into an .rtfd fixture.

#89.

  • "Never holds" used desktop_key. Background keys come back completed, and expect leaves those alone, as documented. It now uses desktop_system_key f19.
  • Spotlight: on macOS 27, Command-Space Spotlight is hosted by Siri AI (com.apple.campo). It keeps its panel listed while ordered out (off screen, on the current Space), and window_appears counted that as already open. window_appears now skips a window that is off screen on its display's current Space, unless its app is hidden. The harness picks whichever Spotlight host is running, and sends Escape only after Spotlight was seen open.

Verified

@iamnbutler
iamnbutler merged commit 42ce4eb into main Oct 17, 2026
2 checks passed
@iamnbutler
iamnbutler deleted the fix/clipboard-export-paste-release-spotlight branch October 17, 2026 14:54
@iamnbutler iamnbutler mentioned this pull request Oct 17, 2026
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