Skip to content

fix: remove false-positive post-hoc maxTurns check (#1795) - #1814

Open
nishantm77 wants to merge 1 commit into
anthropics:mainfrom
nishantm77:fix-1795-max-turns-check
Open

nishantm77 wants to merge 1 commit into
anthropics:mainfrom
nishantm77:fix-1795-max-turns-check

Conversation

@nishantm77

Copy link
Copy Markdown

Fixes #1795. The post-hoc check for maxTurns incorrectly compared num_turns (which counts one per tool result) against maxTurns (which is API rounds). This caused false-positive failures for runs with many parallel tool calls even though they completed successfully. Since the CLI already enforces max-turns (reporting error_max_turns when hit), this commit drops the misleading post-hoc check.

Copilot AI lite review requested due to automatic review settings September 6, 2026 13:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

max_turns check compares num_turns (one per tool result) against --max-turns (API rounds) — false failures with parallel tool calls

2 participants