Repository navigation
Agent: optional cap on model requests per turn, then ask to continue #66689
ouster
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
With local models on an OpenAI-compatible provider, an agent turn can keep going far past the point of being useful. #66686 stops the two clearest shapes, an identical tool call or a repeated reasoning passage. It does not catch a turn that makes progress-looking calls that are all different: rereading files with new ranges, or rerunning a command with small edits.
The current choice is between two settings.
tool_permissions.default: "confirm"asks on every call, which is safe but slow."allow"asks on none, so a long turn runs unattended.Proposal
A setting such as
agent.max_requests_per_turn, off by default. When a turn reaches N model requests, the agent pauses and shows "This turn has made N requests. Continue / Stop" in the thread. Continue allows another N.allow.chat.agent.maxRequests, which pauses and asks to confirm.Questions
I'm happy to open a PR once the shape is agreed.
All reactions