Skip to content

feat: restore auto-accept UI button in prompt input - #23586

Open
anduimagui wants to merge 13 commits into
anomalyco:devfrom
anduimagui:feat/restore-auto-accept-ui-button
Open

feat: restore auto-accept UI button in prompt input#23586
anduimagui wants to merge 13 commits into
anomalyco:devfrom
anduimagui:feat/restore-auto-accept-ui-button

Conversation

@anduimagui

@anduimagui anduimagui commented Apr 20, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #21578
Closes #21423
Closes #21999

Type of change

  • New feature
  • Bug fix
  • Refactor / code improvement
  • Documentation

What does this PR do?

In v1.4.0 #23586 (restores auto-accept button functionality that was previously removed), the auto-accept permissions toggle was moved to only be available in global Settings.

This PR restores the quick-access auto-accept button in the prompt input area, allowing users to quickly toggle auto-accept permissions without navigating to settings.

Changes made:

  • Extracted auto-accept button into a separate AutoAcceptButton component (`packages/app/src/components/auto-accept-button.tsx`)
  • Imported and integrated `AutoAcceptButton` into `prompt-input.tsx`
  • Kept the existing settings toggle in `settings-general.tsx` for users who prefer that path
  • Updated E2E tests in `prompt-shell.spec.ts` and `session-composer-dock.spec.ts` to use the new `prompt-permissions` button data attribute

How did you verify your code works?

  • Built the app locally (`bun run build` in packages/app)
  • Verified the button renders correctly in the prompt input
  • Tested clicking the button toggles auto-accept state properly
  • Ran E2E tests: `bun test` in packages/app
  • Verified both session-level and directory-level auto-accept work correctly
  • Checked that the settings toggle still works as expected

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Andrew Maguire added 2 commits April 18, 2026 12:41
- Extract auto-accept button into separate AutoAcceptButton component
- Import and use AutoAcceptButton in prompt-input.tsx
- Keep existing settings toggle in settings-general.tsx
- Update e2e tests to use prompt-permissions button

This restores the quick-access auto-accept button in the prompt input
while keeping the settings toggle for users who prefer that path.
Resolved conflicts:
- packages/app/src/components/prompt-input.tsx: Kept both AutoAcceptButton
  import and upstream's useQuery/bootstrap imports
- packages/app/e2e/prompt/prompt-shell.spec.ts: Deleted (removed upstream)
- packages/app/e2e/session/session-composer-dock.spec.ts: Deleted (removed upstream)
@nmosafi

nmosafi commented May 6, 2026

Copy link
Copy Markdown

I'm keen on this one, is someone going to review it?

@nmosafi

nmosafi commented Jun 2, 2026

Copy link
Copy Markdown

@adamdotdevin Hello, sorry for the chase, just wondering if you or someone will be reviewing this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants