E0 · App-driving + screenshot recipe (#180) - #190
Merged
Conversation
Commit a reusable, documented way to drive the running GPUI wallet and capture per-window screenshots, so every v4 GUI issue can produce before/after evidence. - scripts/deckard-drive.sh: window finder (Swift CGWindowListCopyWindowInfo -> largest layer-0 "deckard" window), screencapture -l<id> (occlusion-proof window capture), cliclick/osascript input, and an unlock helper. Self- diagnoses focus via NSRunningApplication.activate -> isActive. - docs/dev/driving-the-app.md: the full macOS recipe (just demo funded Sepolia fork, passphrase deckard-demo) + honest caveats -- synthetic input only lands when the app is the active/key app; the Cmd-Return confirm, the Cmd-K query, and Activity j/k/x/Esc are hand-rolled and don't fire synthetically; drive real broadcasts via the headless agent and verify logic with tests. Cross- links the Linux/CI recipe. - docs/screenshots/driving-the-app-unlock.png: recipe-produced capture of the demo Unlock screen (launch + Swift finder + window-scoped capture). Docs/scripts only -- no crate touched. Refs #179, #180.
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.
Commits a documented, reusable way to drive the running GPUI wallet and capture per-window screenshots, so every later v4 GUI issue (E2–E7) can produce before/after evidence. Docs + scripts only — no crate touched.
Part of the v4 build epic #179 (E0 is the prerequisite for every GUI issue's evidence). Closes #180.
What's delivered
scripts/deckard-drive.sh(committed, executable, not gitignored) — one entry point:win— SwiftCGWindowListCopyWindowInfofinder → the largest layer-0deckardwindow's id + bounds.shot <name>—screencapture -x -o -l<id>, occlusion-proof (region capture reads back whatever app is composited on top;-l<id>grabs the window's own bitmap).click/clickpt/type/key/unlock/raise/deps—cliclick+osascriptinput at window-relative coords.raiseusesNSRunningApplication.activateand self-reportsisActive=<bool>;unlockwarns loudly if the app isn't active.docs/dev/driving-the-app.md— the full macOS recipe (just demofunded Sepolia fork, passphrasedeckard-demo;just run/just qa), the three primitives spelled out so you can rebuild them without the script, and the honest caveats below. Cross-linksdocs/dev/headless-gui-screenshots.mdfor the Linux/CI path.Honest caveats (the point of E0 — these save hours)
activeapp.raisereportsisActive;falsemeans nothing you type/click will land.screencapture -lshot never proves your click registered. Verify from the next shot.⌘↵/click confirm, the ⌘K query, and Activityj/k/x/Escare hand-rolledon_key_downand don't fire synthetically; registered actions (⌘,,⌘⇧D) do.just demo-deposit+just demo-agent); verify LOGIC via tests, not screenshots.Proof (followed the recipe)
just demo(funded fork viasepolia.drpc.org, chain11155111) → the Swift finder returned36105 316 181 880 620→ window-scoped capture of the demo Unlock screen:Definition of Done (#179 Implementer Contract)
cargo fmt --all --checkclean ✅just checkgreen (clippy-D warnings, both feature configs) ✅cargo test --workspacegreen (0 failed) ✅Cargo.toml/Cargo.lockuntouched) ✅crates/file changed ✅