Repository navigation
fix(daemon): point a --device UDID conflict to --udid - #4004
Conversation
|
At 8253d3d, the issue's own scenario works from reading the code: the bound UDID is accepted as Not blocking, take or leave: (1) The rewrite lives only in Could one normalization step cover all of this? Where the request is bound to the session (around Before merge, please run a provider-scoped request on a bound session with |
|
Thanks for picking this up. We decided on #3945 to keep |
Per review on callstack#3945, --device stays a name selector and --udid the ID selector. Keep rejecting --device=<UDID> for a session bound to an Apple device, but when the value is the bound device's UDID, the conflict error now says to use --udid <UDID>. Drop the resolveCommandDevice change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@zerone0x is attempting to deploy a commit to the Callstack Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks, done in 417cfb5.
I also changed |
|
The code looks good at 417cfb5, and it addresses the points from the earlier review at 8253d3d (#4004 (comment)). Not blocking, and fine to take or leave: |
Summary
A session bound to an Apple device rejects
--device=<UDID>of that same device withINVALID_ARGS. As decided on #3945,--devicestays a name selector and--udidthe ID selector, so the rejection is kept. The error now tells the caller which flag takes that value.listSessionSelectorConflictsis unchanged:--devicestill matches only the device name.describeDeviceUdidSelectorConflict: when a--deviceconflict's value equals the bound Apple device's UDID, the conflict message adds--device selects a device by name; select this device by UDID with --udid <UDID>.Used byassertSessionSelectorMatchesand by the bound-session request-lock conflict message.--device, gets the plain conflict error with no--udidpointer.resolveCommandDevicechange.Refs #3945
Validation
vitest runonsession-selector.test.ts,session-device-resolution.test.ts,request-lock-policy.test.ts: 48 passed.oxfmt --checkon the touched TS files: pass.tsc -b packages/daemon: pass.check:affected,oxlint. CI is the authority for these.🤖 Generated with Claude Code