Repository navigation
fix(id): reject conflicting REPL peek mode flags (#3890) - #4501
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
parse_peek_args accepted --head-only with --tail-only and --chars with --words, then silently rendered only one member of each pair. The CLI declares both pairs conflicts_with (cli.rs); the REPL parser now rejects both pairs with a parse error before any search/fetch work, mirroring the existing --first/--last rejection shape. Regression tests pin both conflicting pairs as errors and the single-flag cases as accepted. Verification status: cargo test -p id --lib test_parse_peek_args cannot complete on current main — the lib-test compile fails with only the two references.rs errors (E0277 StoreId: Default, E0597 borrow) that PR #4477 restores; no errors in repl/runner.rs. Rerun after #4477 merges and this branch rebases (task 6234 park note).
dezren39
force-pushed
the
queue/6234-3890-peek-flag-conflicts
branch
from
November 3, 2026 01:49
c2548d9 to
f33808e
Compare
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.
Fixes #3890 (queue task 6234). Verification complete — see below.
Change
parse_peek_args(pkgs/id/src/repl/runner.rs) accepted--head-onlywith--tail-onlyand--charswith--words, then silently rendered only one member of each pair. The CLI declares both pairsconflicts_with(cli.rs); the REPL parser now rejects both pairs with a parse error before any search/fetch work, mirroring the existing--first/--lastrejection shape and error-string style.Regression tests: both conflicting pairs rejected with the exact messages; single-flag cases for each pair still accepted. No flag definitions or single-flag rendering semantics changed.
Verification status
PR #4477 merged 2026-11-02T17:52Z, clearing the references.rs compile blocker. This branch was rebased onto current main (4ee46c0) as f33808e and re-verified on the laptop by queue task 6234 (lane code-f, 2026-11-03):
cargo test -p id --lib test_parse_peek_args— 18 passed, 0 failed, including the newtest_parse_peek_args_rejects_head_only_tail_only_togetherandtest_parse_peek_args_rejects_chars_words_together.cargo fmt --checkdiffs are pre-existing rustfmt-version drift proven identical on clean origin/main (including files this PR does not touch); this PR changes only pkgs/id/src/repl/runner.rs. Codex review on the identical pre-rebase diff: completed, no findings.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.