Skip to content

feat(review): add --grouping flag to override file grouping - #2117

Open
Anurag1428 wants to merge 1 commit into
alibaba:mainfrom
Anurag1428:feat/grouping-override-2113
Open

Anurag1428 wants to merge 1 commit into
alibaba:mainfrom
Anurag1428:feat/grouping-override-2113

Conversation

@Anurag1428

Copy link
Copy Markdown

Refs #2113 (item 1 only).

Adds --grouping llm|bundle-all|per-file to ocr review. It forces the grouping strategy for the run. per-file gives every file its own group with no grouping call, so large change sets can use --concurrency. When the flag is not set, nothing changes: the existing thresholds decide as before.

Changes:

  • Template.GroupingOverride (runtime only, not read from task_template.json) and ParseGroupingOverride; GroupingPlan returns the override when set.
  • --grouping flag with validation and shell completion.
  • Tests for parsing, plan override, and groupDiffs with per-file and bundle-all (no grouping LLM call).
  • One row in the English CLI reference.

Not included: groups[] in the JSON result and resume checkpoints (the other items in #2113).

AI disclosure: I used AI assistance (Gemini 3.8 Flash) while working on this change. I reviewed all of it and can explain every line.

@github-actions

Copy link
Copy Markdown
Contributor

✅ OpenCodeReview: Review complete: 0 finding(s) across 3 selected item(s).

@Qiyuanqiii Qiyuanqiii left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this type of change, I believe addressing the underlying problem at the architectural level may be preferable to exposing additional configuration options for users to work around it.

Moreover, the existing automatic grouping strategy was introduced in #1103 based on empirical evaluation. The proposed manual override introduces potential trade-offs, but this PR does not provide comparative benchmarks on recall, token consumption, or review latency.

Given these considerations, I suggest deferring further review and approval until the maintainers confirm the design direction.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants