Repository navigation
fix(cli): accept positional APP and --app on every window command - #596
Open
princejain756 wants to merge 2 commits into
Open
princejain756 wants to merge 2 commits into
princejain756 wants to merge 2 commits into
Conversation
Contributor
|
@princejain756 is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
Window-lifecycle commands disagreed on how to name the target app: launch and close-app only took a positional, minimize, maximize and restore only took --app. An agent that pattern-matched one command's shape onto a sibling got INVALID_ARGS naming the rejected token, with no hint about the accepted form. Give each command both spellings. Positional and --app conflict with each other so there is never an ambiguous double target, and batch JSON keeps parsing the documented "app" key because the CLI-only flag fields are skipped by serde. Fixes vercel-labs#487
princejain756
force-pushed
the
fix/window-command-app-arg-forms
branch
from
November 28, 2026 04:44
c1fb38c to
1fe8a43
Compare
This branch has not been deployed
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.
Window-lifecycle commands disagreed on how to name the target app:
launchandclose-apponly took a positional argument, whileminimize,maximizeandrestoreonly took--app. Mixing the shapes returnedINVALID_ARGSnaming the rejected token but not the accepted form.Every window command now accepts both spellings, with the two forms conflicting so there is no ambiguous double target. Batch JSON keeps parsing the documented
appkey unchanged.Verified:
cargo test --bin agent-desktop(231 passed, new arg-form tests included),cargo clippy --all-targets -D warningsclean,cargo fmt --checkclean.Fixes #487