Repository navigation
fix(cli): let help accept device selection flags - #5269
Conversation
2464e11 to
fb56259
Compare
There was a problem hiding this comment.
1 issue found
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="src/__tests__/cli-help.test.ts">
<violation number="1" location="src/__tests__/cli-help.test.ts:385">
P2: The unsupported-flag case does not verify that help is rejected before daemon dispatch. Assert `invalid.calls.length === 0` so a future ordering regression cannot pass this test after issuing a request.</violation>
</file>
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 8c9f5c4. The verdict and the full list are in the summary comment.
This comment has been minimized.
This comment has been minimized.
|
At cbde3e4, help still rejects device selection flags on the The new allowance is keyed only on the command name Not blocking: each of these can be taken or left: skip the batch step-source check when Could a single Two review threads no longer apply and can be resolved: this one because the test now asserts that All 22 checks pass at this commit. Not verified here: nothing was executed and the PR head was not checked out, so the route results come from reading the source; the |
Any help request (help, --help with or without a command) accepts the device selection flags and ignores them; other flags still go through the command's own flag check. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Apex Sentinel · ✅ Approve · review of
|
| Finding | Fixed by | Where |
|---|---|---|
help can now fail with INVALID_ARGS from a bad AGENT_DEVICE_* value |
thymikee | cbde3e4 · reply |
Reviewed with this repository's own Sentinel configuration (15b6226ddcb3).
💬 Talking to Sentinel
In a finding's thread, reply with:
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
At b49ffb4, the code looks good. The earlier Two review threads no longer apply and can be resolved: this one because the test now asserts that All 23 checks pass. Not verified here: nothing was executed and the PR head was not checked out, so the route results come from reading the source. |
Summary
Allow help requests to accept device and session selection flags without changing the help output. Reject unrelated unsupported flags as before.
Before / after
agent-device help gestures --platform ios --udid Xpreviously rejected the flags. It now begins:Validation
pnpm install --frozen-lockfile && pnpm buildpnpm exec vitest run --project unit-core src/__tests__/cli-help.test.ts(37 passed)Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.