posit-dev / posit-dev/positron

Assistant: set maximum number of auto approves

Open
#9,282 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: assistant enhancement
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 9h
Merged PRs (30d)
195

Description

Splitting this feature request out from https://github.com/posit-dev/positron/issues/8640.

Proposal

Some tool calls can be allowed to auto-run in the session/workspace, or always allowed to auto-run without user confirmation.

When users have selected "Allow in this Session", "Allow in this Workspace", "Always Allow", or even enabled the setting chat.tools.autoApprove, it is possible for the Agent to do an extensive amount of work if feeling particularly inspired.

Consider a max number of auto approves to conserve token usage so the model doesn't get too carried away.

Notes
  • Can we leverage the setting chat.agent.maxRequests for the max number of auto approves? Note that the setting description includes "copilot", so we'll want to make this more generic if we can use this setting as-is.

  • Chat followups may be another area of inspiration

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by tracing the chat.tools.autoApprove and chat.agent.maxRequests settings, then check how session, workspace, and always-allowed approvals are handled. Done should include a maximum for auto approvals and clarify whether chat followups count toward it.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.