fix(acp): honor configured max turns - #84205
Open
desmond-rai wants to merge 1 commit into
Open
Conversation
desmond-rai
force-pushed
the
fix/acp-max-turns-config
branch
from
August 12, 2026 02:08
6797235 to
241b1f4
Compare
Collaborator
Contributor
PR: fix(acp): honor configured max turns
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agent.max_turnsinto ACP-createdAIAgentinstancesmax_turnscompatibilityRoot cause
The ACP session manager loaded Hermes configuration but never passed
max_iterationsintoAIAgent. Paseo and other ACP clients therefore silently used the constructor default instead of the user-configured value.Verification
uv run --extra dev --extra acp pytest -q tests/acp_adapter(15 passed)uv run --extra dev ruff check acp_adapter/session.py tests/acp_adapter/test_acp_commands.pypython3 -m compileall -q acp_adapter/session.py tests/acp_adapter/test_acp_commands.pygit diff --check