Repository navigation
fix: start the macos cursor overlay outside the caller's directory - #381
Merged
Merged
Conversation
…ests The macOS command host switches to each caller's working directory to run a request and stayed there until it exited, up to 15 idle minutes later. Tools that check whether a directory is in use saw the caller's directory as busy for that long. The host now starts in / and returns to / after each accepted request. Rejected requests still leave the working directory alone. Tests that read or change the process working directory share a lock that restores it. Co-Authored-By: Shah <42602105+Shahfarzane@users.noreply.github.com>
The overlay child is spawned during a request, while the command host is in the caller's directory, and runs for the whole overlay session. It inherited that directory and kept it busy after the host returned to /. It reads no relative paths, since the image path is canonicalized before dispatch. The working-directory test guard is now unix-only, because only unix tests use it and Windows clippy failed on it as dead code. The accepted-request test uses the temp directory as the caller directory, so tests that spawn processes cannot inherit a directory that is deleted under them.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
ctate
approved these changes
Nov 1, 2026
ctate
approved these changes
Nov 4, 2026
lucamaraschi
added a commit
to lucamaraschi/agent-desktop
that referenced
this pull request
Nov 5, 2026
Brings in stdin for text commands (vercel-labs#373), partial snapshots after observation expires (vercel-labs#372), the macOS workspace inventory fix (vercel-labs#371) and the cursor overlay start directory fix (vercel-labs#381). main reads --stdin text before dispatch and redacts the result, and dispatch judges the command first, so a refused command consumes the text and delivers nothing. The gate records the raw outcome, and the policy stores are still released after the envelope is printed. Command facts carry no text, so piped text cannot reach a verdict or the history. A process test now pins the refusal and that the envelope and stderr never repeat the text.
ZERLB
added a commit
to ZERLB/agent-desktop-mac
that referenced
this pull request
Nov 9, 2026
…#373, vercel-labs#381, vercel-labs#376, vercel-labs#573) Juntar el original hasta la 1.2.0: texto por la entrada (--stdin), el cursor fuera de la carpeta de quien llama, menús nativos de la app sin ventana y el inventario de procesos con libproc. Choques sólo en docs/json-output.md y commands-observation.md (se conservan los dos textos). snapshot --diff ahora toma la app y la ventana del nuevo SnapshotOwner; los menús de la app, que ya no tienen ventana, se comparan por app.
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.
/and move the snapshot owner-selection helper into the window capture module.Co-authored by @Shahfarzane, based on #378.