Skip to content

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

Closed
anduimagui wants to merge 2 commits into
anomalyco:devfrom
anduimagui:revert/auto-accept-ui-button
Closed

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

Conversation

@anduimagui

Copy link
Copy Markdown

This PR restores the auto-accept permissions button in the prompt input UI while keeping the existing settings toggle.

Changes

  • Created new AutoAcceptButton component that encapsulates the auto-accept toggle logic
  • Imported and use AutoAcceptButton in prompt-input.tsx
  • Kept the existing settings toggle in settings-general.tsx unchanged
  • Updated e2e tests to use the prompt-permissions button instead of settings

Rationale

The auto-accept button was removed from the prompt input in #21308 and moved entirely to settings. This PR restores the quick-access button in the prompt input for users who prefer the convenience of toggling auto-accept directly from the composer, while keeping the settings option available for those who prefer that path.

Testing

  • Updated prompt-shell.spec.ts to use the prompt button
  • Updated session-composer-dock.spec.ts to use the prompt button

Related: Reverts the UI removal portion of #21308

- 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.
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

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)
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Apr 18, 2026
@github-actions github-actions Bot closed this Apr 18, 2026
@nmosafi

nmosafi commented Apr 22, 2026

Copy link
Copy Markdown

@anduimagui Nice PR, seems it got auto rejected 😭

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

2 participants