Repository navigation
fix(id): reject malformed REPL flags - #3092
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 41 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. |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 06fc15565d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Merge pass 2026-11-01: parking this PR. A trial merge of main into the branch gives 7 conflict hunks in pkgs/id/src/repl/runner.rs and they are semantic: the branch hard-errors on missing flag values via a new required_value helper, while main now soft-records a --format error (format_error) at the same call sites. Which semantics win is the REPL owner's call, not a merge-resolution guess. The trial merge was aborted and the branch is untouched. Resolution task: #3821 |
|
🤖 Agent note · picked up
|
|
🤖 Agent note · parked
|
|
agent-note:v1
|
06fc155 to
4358a32
Compare
|
Shepherd pass (task 6012): PR #4072 merged first (c8a2191, #2009 closed). This PR rebased onto current main: 06fc155 -> 3f5f52a + fmt fix 4358a32 (worktree ~/git/fleet/6012 on the laptop). Conflict resolution in runner.rs: kept main's newer designs where they superseded this branch (format_error deferred reporting from 3488a51; validate_result_limits and bare --first/--last/--lines defaults from #4072; peek >file redirect from #4161), took this branch's required_value missing-value errors for -o/--output/--dir/--exclude/--format and the bare-> redirect error in peek, and adapted two superseded test expectations (invalid --format now asserts format_error; bare --lines asserts the default) with comments naming the superseding change. Remaining before merge: cargo test repl::runner suite on the rebased head + a clean Codex round — both gated on laptop load (96+ at push time; cargo verification is fleet-gated at this load). Parked 1h. |
required_value rejected any hyphen-prefixed token as a missing value, but exclusion patterns are data and may start with a hyphen (Codex P2 on PR #3092: --exclude -draft). --exclude in both parsers now uses required_pattern, which accepts any non-empty next token; the other value flags keep the strict check. Regression assertions added for find and peek.
Summary
Closes #2274.
Evidence
--fist 2silently became an extra query; bare>yielded an empty path.cargo test --no-default-features --lib repl::runner::testspassed 25 tests, including malformed-argument regressions.git diff --checkpassed. Workspace-widecargo fmt --checkreports existing formatting differences in unrelated files; the changed file was formatted.Merge Danger
Door: Two-way
Blast Radius: REPL