Skip to content

fix(review): honor lower max-tools overrides - #1118

Merged
lizhengfeng101 merged 2 commits into
alibaba:mainfrom
DreamZhongJu:fix/review-max-tools-override
Nov 3, 2026
Merged

lizhengfeng101 merged 2 commits into
alibaba:mainfrom
DreamZhongJu:fix/review-max-tools-override

Conversation

@DreamZhongJu

Copy link
Copy Markdown
Contributor

Summary

Make review --max-tools apply validated positive values exactly.

On current main, values from 1 to 49 are normalized to 50, but the shared template loader only applies values greater than the template default of 100. As a result, values from 50 to 99 are accepted but silently ignored.

This change:

  • keeps the template default when --max-tools is 0;
  • applies validated positive review overrides exactly;
  • preserves the existing minimum-value normalization;
  • leaves the scan command behavior unchanged;
  • records the effective value as max_tool_request_times in the run manifest;
  • updates the corresponding CLI documentation and translations.

For example, review --max-tools 50 now uses 50 rounds instead of silently retaining 100.

Testing

  • go test -race -count=1 ./...
  • go test -p=1 -count=1 ./...
  • go vet ./...
  • go run scripts/verify-english-only.go

Fixes #935

Related: #936 was closed without being merged.

@CLAassistant

CLAassistant commented Aug 31, 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 3 selected item(s).

@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 20d57cb into alibaba:main Nov 3, 2026
15 checks passed
patmmccann added a commit to prebid/Prebid.js that referenced this pull request Nov 3, 2026
…* branches (#16024)

* CI: bump OpenCodeReview to v1.13.5

Pins the action, CLI and tool-schema preflight to v1.13.5 (from 1.13.3).
v1.13.5 makes `ocr review --max-tools` honor values below the 100-round
default (alibaba/open-code-review#1118); the action does not expose it
yet, so the workflow comment says so. Also picks up v1.13.4's "keep OCR
runtime stable during review" and diff-parsing fixes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* CI: run the bounded Qwen reviewer only on ci/qwen-* branches

Its findings have mostly been false positives, so pause it on regular
PRs the way OpenCodeReview is limited to ci/ocr-agent-* branches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[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.

review: --max-tools 10-29 is accepted but silently ignored

4 participants