Skip to content

fix: honor settings auto-accept on new sessions - #47104

Open
RaviTharuma wants to merge 3 commits into
anomalyco:devfrom
RaviTharuma:fix/settings-auto-accept-new-session
Open

fix: honor settings auto-accept on new sessions#47104
RaviTharuma wants to merge 3 commits into
anomalyco:devfrom
RaviTharuma:fix/settings-auto-accept-new-session

Conversation

@RaviTharuma

Copy link
Copy Markdown

Issue for this PR

Closes #47096

Type of change

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

What does this PR do?

Desktop Settings can turn Auto-accept permissions on for a directory, but a new session only copied the prompt-bar toggle. If that toggle was off, the first message still prompted.

New sessions now also inherit isAutoAcceptingDirectory(projectDirectory) from Settings.

How did you verify your code works?

Added applies settings directory auto-accept to new sessions when the prompt toggle is off in packages/app/src/components/prompt-input/submit.test.ts. Ran that file under bun test --conditions=solid --preload ./happydom.ts; the suite hits a pre-existing toaster export error in this worktree, same as importing the existing tests.

Screenshots / recordings

N/A — permission wiring, no layout change.

Checklist

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

Copilot AI lite review requested due to automatic review settings September 3, 2026 17:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop Auto-accept permissions toggle does not stop permission prompts

2 participants