Repository navigation
fix(cli): preserve spaced output flag values - #4823
Conversation
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. |
Retain main's portable cache staging and composed Electron cleanup assertions from morluto#4824. Remove the superseded cache-retention workaround so the remaining diff only preserves spaced output flag values and their regressions.
[Medium impact] The reviewed changes appear safe to merge. SummaryPreserves flag-shaped values passed after spaced output flags instead of splitting those values as separate options.
Reviews (1) · Last reviewed commit: "fix(cli): resolve output argument merge ..." · Reviewed by Greptile |
|
Thank you, @ShuaixinHuang, for tracking down why a spaced |
Problem and outcome
rea --filter-output --format=json providers --jsontreats--format=jsonas the filter's literal value in Incur. REA's token-by-token normalizer split that owned value into--format,json, leavingjsonto be parsed as a command. The equivalent equals form already worked.Normalize once with a forward scan that preserves the next nonempty token of each spaced valued output flag. Split equals forms only when the token is an option, preserving Incur's existing missing/empty-value semantics. The shared validator and streaming output consumers continue to use the same normalized arguments.
Merge resolution
Merged main at
666842434in34e347703. Main already includes #4824's French README correction, portable cache staging repair and composed Electron cleanup assertions. Retain those versions and remove the superseded build-job cache-retention workaround. Relative to current main, onlysrc/cliOutput.tsandtests/boundary/cli/cliOutput.test.tschange.Validation
Executed for the merge resolution on macOS with pinned Node 24.18.0:
npm run test:focused -- tests/boundary/cli/cliOutput.test.ts tests/boundary/process/electronLaunchRejections.test.ts: 38/38 passed, including 25 CLI output tests and 13 Electron launch rejection tests. This exercises the compiled public CLI, spaced/equals forms, malformed-filter and missing-value controls, structured output, artifact diagnostics, and main's composed cleanup assertions.npm run check:fast: typecheck and lint passed; pre-push repeated the check successfully.git diff origin/main...HEAD --check: passed.The author's original Windows regressions failed before the fix (5 failed / 20 passed) and passed afterward (25/25). Those results and the earlier full
npm run checkapply to the pre-merge revision; a full check and Windows tests were not rerun for this merge resolution. Hosted CI for the new head is pending. Electron launch tests cover controlled failures and local Playwright failure paths, not a real application investigation.Routine CLI correctness fix, no separate capability scope decision required. No MCP schema, provider, dependency, generated metadata, authority or release changes. Prepared with AI assistance. No separate issue was opened for this reproduced residual normalizer defect.
Author readiness
Human owner: @ShuaixinHuang