Repository navigation
Fix physical-device openURL argument ordering - #147
Merged
Merged
Conversation
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.
With an explicitly selected physical device,
mav openURLfailed withMissing expected argument '--device …'. The selected UDID reached CoreDevice correctly, but its launch command put--deviceand--json-outputafter the app bundle identifier, where devicectl treats them as application arguments.Keep tool options before the app bundle identifier and preserve the separate application argument tail. Continue using the supported
--payload-urloption without rewriting the URL. This also fixes the shared physical-device launch path. Document physical-device URL delivery in the README and MAV skill.Diagnosis and validation
ef55d28(also tagv0.35.0) and installed MAV 0.35.0. The command emitted by main fails with exit 64 on CoreDevice 651.13.5 using a synthetic device identifier, before device lookup.go test ./internal/mav/drivers/coredevice -run 'TestOpenURL|TestLaunchReads' -vfailed bothTestOpenURLPassesPayloadToConfiguredAppandTestLaunchReadsJSONPIDAndPreservesAppArgumentsAndEnvironment: the bundle preceded--device. The CLI device subtest also failed with the same incorrect argv order. With the fix, all three regression tests and the simulator/Mac subtests pass.make checkpassed: formatting, all tests (main package: 81.488s), and compilation.https://example.com/?mav_probe=a%20b+c&next=x%26y%3Dz#part%201: installed MAV returnsfail code=open_url_failedwith the missing-device error; the locally built fixed binary returnsok cmd=openURL driver=coredevice target_kind=device target_source=envand the unchanged URL. This verifies CoreDevice accepted delivery; custom-app handling of a URL is covered by synthetic argv tests, not a private app UI assertion.Public content review: reviewed the English README, skill additions, tests and PR text. All published examples are synthetic; no device identifiers or personal paths from the physical-device probe are included. No global installation or release is part of this change.