Skip to content

Conversation

uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Sep 26, 2025

Description

When auto-accept agent edit setting is turned on, automatically accept the edit tools including findandreplace, multiedit and editexistingfile.

resolves CON-3918

AI Code Review

  • Team members only: AI review runs automatically when PR is opened or marked ready for review
  • Team members can also trigger a review by commenting @continue-general-review or @continue-detailed-review

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

before.mp4
after.mp4

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Automatically accepts agent edit tool diffs when the auto-accept setting is enabled, skipping confirmation for Edit Existing File, Single Find & Replace, and Multi Edit calls. Addresses Linear CON-3918 to reduce friction in agent-led edits.

  • New Features
    • Checks ui.autoAcceptEditToolDiffs during tool call handling.
    • Auto-approves EditExistingFile, SingleFindAndReplace, and MultiEdit when enabled.

@uinstinct uinstinct requested a review from a team as a code owner September 26, 2025 10:02
@uinstinct uinstinct requested review from RomneyDa and removed request for a team September 26, 2025 10:02
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 26, 2025
Copy link
Collaborator

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

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

@uinstinct I agree YOLO mode should be expanded to include policies. With this implementation the policy behavior would conflict with the tool policy in the settings page. I think we could do this approach but only if we also show UI (maybe a tooltip/icon) to indicate that the tool policy is forced to automatic by the auto accept edits setting (and show it as automatic and disabled in the policies)

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants