Skip to content

docs(cli): align --max-tools help text with min 50 clamp - #1077

Merged
lizhengfeng101 merged 2 commits into
alibaba:mainfrom
bianjp:docs/fix-max-tools-help-min
Aug 27, 2026
Merged

lizhengfeng101 merged 2 commits into
alibaba:mainfrom
bianjp:docs/fix-max-tools-help-min

Conversation

@bianjp

@bianjp bianjp commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Description

ocr review --help and the OpenCode plugin still describe --max-tools as min 10, but validateReviewOptions clamps positive values below 50 (raised in #808). Website CLI docs already document the 1–49 clamp.

This only updates those leftover user-facing strings so they match the existing implementation. No behavior change.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring (no functional changes)
  • Documentation update
  • CI / Build / Tooling

How Has This Been Tested?

  • make test passes locally
  • Manual testing (describe below)

Inspected validateReviewOptions (minMaxTools = 50) and TestParseReviewFlags_MaxToolsBelowMin (--max-tools 30 is clamped to 50). Full go test ./cmd/opencodereview/ was not used as a gate: unrelated tests fail locally because git commit in temp repos hits GPG signing (No secret key).

Checklist

  • My code follows the project's coding style (go fmt, go vet)
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the documentation accordingly (if applicable)
  • I have signed the CLA

Related Issues

Not a duplicate of #935 / #936 (those cover raise-only vs lower-override semantics). This is leftover help text after #808 raised the floor from 10 to 50.

Made with Cursor

The review flag help and OpenCode plugin still said min 10 after
alibaba#808 raised minMaxTools to 50. Website docs already document the
1–49 clamp.

Co-authored-by: Cursor <[email protected]>
@CLAassistant

CLAassistant commented Aug 27, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

Copy link
Copy Markdown
Contributor

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

Comment thread cmd/opencodereview/shared_flags.go Resolved

@lizhengfeng101 lizhengfeng101 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.

LGTM

@lizhengfeng101
lizhengfeng101 merged commit 18f8349 into alibaba:main Aug 27, 2026
12 checks passed
Githab-capibara added a commit to Githab-capibara/open-code-review that referenced this pull request Sep 17, 2026
* docs(cli): align --max-tools help text with min 50 clamp

The review flag help and OpenCode plugin still said min 10 after
alibaba#808 raised minMaxTools to 50. Website docs already document the
1–49 clamp.

Co-authored-by: Cursor <[email protected]>

* docs: Apply suggestions from code review

Co-authored-by: Kite <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
Co-authored-by: Kite <[email protected]>
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.

3 participants