Repository navigation
fix(cli): refuse an empty or non-decimal numeric flag value #2492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+31
−12
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| 'e2e': patch | ||
| --- | ||
|
|
||
| The numeric flags of `e2e run`, `e2e mcp`, and `e2e explore` take decimal digits only. An empty value, such as `--retries "$RETRIES"` with the variable unset, used to read as 0 and turn retries off without a word; it is now a usage error, exit 2, as an empty `--tag` is. `0x1` and `1e3` are refused the same way. |
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3 · Non-blocking · The decimal-digits rule is documented for
e2e runonlyOptional. This does not block the merge.
The new sentence is in the
e2e runsection, but the changeset says that thee2e mcpande2e explorenumeric flags changed too. These pages describe the affected flags and still give only their ranges:docs/reference/mcp.mdx:69(--max-sessions):--max-sessions 0x2now exits 2 instead of starting with 2 sessions.e2e exploreoption table,docs/reference/cli.mdx:1253-1254(--max-steps,--timeout):--timeout 6e5now exits 2.skills/e2e/references/running.md:44-47says that an empty--targetor--tagexits 2 and gives--retriesguidance, but does not say that an empty--retries "$RETRIES"now exits 2.AGENTS.mdrequires the matching docs page andskills/e2e/to change with the behavior. Non-blocking.