Skip to content

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

Open
anduimagui wants to merge 4 commits intoanomalyco:devfrom
anduimagui:feat/restore-auto-accept-ui-button
Open

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

Conversation

@anduimagui
Copy link
Copy Markdown
Contributor

@anduimagui anduimagui commented Apr 20, 2026

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.

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?

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

- 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant