Skip to content

Approve Claude Code's own prompts in Full Access by default - #6233

Merged
ymichael merged 1 commit into
mainfrom
bb/read-discord-channel-message-thr_3wnnpqs8w6
Oct 24, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/read-discord-channel-message-thr_3wnnpqs8w6

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Since #4764 (0.47), the Claude Code bridge forwards every canUseTool request in Full Access to the user, so that permissions.ask rules prompt. That PR assumed Claude Code asks only about ask rules and PreToolUse hooks that answer "ask" in bypassPermissions. It also asks on some of its own built-in safety checks. On CLI 2.1.309, W=/tmp/x; for d in a b; do echo $d; done; rm -f $W/*.log reaches canUseTool with "Dangerous rm operation on possibly-empty variable path…", although the same rm alone does not. Full Access threads and automations now stop for approval on these. A user reported this on Discord ("A variable in this command can't be checked before it runs", "This command changes directory before running a version-control command…"), and it hit one of our own Full Access threads too.

bb can't approve only the safety checks while keeping ask-rule prompts. The SDK drops the control request's decision_reason_type before calling canUseTool, so a plain ask rule, a hook "ask", and a safety check differ only in free-form decisionReason text.

What changed

  • New Claude Code provider setting Approvals in Full Access (fullAccessApprovalsEnabled), off by default.
  • The value travels in providerOptions like sandboxEnabled and sits with the bridge's live session settings, so a change applies from the next turn without restarting Claude. HOST_DAEMON_PROTOCOL_VERSION is unchanged.
  • Docs: docs/configuration.md, the providers guide, and the claude-code-provider skill.

How you verified

  • pnpm exec turbo run typecheck test lint --filter=bb-plugin-provider-claude-code: 406 tests pass. pnpm exec turbo run test --filter=@bb/server -- test/threads/thread-runtime-config.test.ts: 33 pass.
  • New bridge test: in Full Access a safety-check request is approved without a prompt by default, and is forwarded after a turn turns the setting on. It fails without the bridge change.
  • Reproduced the cause against the Agent SDK directly with bb's launch options (CLI 2.1.309, streaming input, bypassPermissions). The compound rm command reached canUseTool, and the simpler variants did not.
  • Manually QA'd in a source dev app, with a real Full Access Claude Code thread running the command above:
    1. Setting off: the command ran with no prompt.
    2. Setting turned on with the CLI: the next turn showed the "Dangerous rm…" approval card, and Deny worked.
    3. Setting toggled off in Settings → Plugins → Claude Code provider (still off after a reload): the command ran with no prompt again.

AGENT GENERATED

🤖 Generated with Claude Code

Since #4764, Full Access Claude Code threads forward every request
Claude Code sends to canUseTool. In bypassPermissions Claude Code also
asks on some built-in safety checks (such as rm on a possibly-empty
variable inside a compound command), so Full Access threads and
automations started stopping for approval.

Add an "Approvals in Full Access" provider setting
(fullAccessApprovalsEnabled), off by default. Off approves every
request in Full Access, as before 0.47. On keeps #4764's behaviour and
shows ask rules, hook asks, and safety checks. It applies from the next
turn without restarting Claude.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit 9eb0c09 into main Oct 24, 2026
51 checks passed
@ymichael
ymichael deleted the bb/read-discord-channel-message-thr_3wnnpqs8w6 branch October 24, 2026 18:16
mistakeknot added a commit to mistakeknot/aleph that referenced this pull request Oct 27, 2026
…-bb#6233)"

The get-bb#6233 setting is not taken, so its default flip goes with it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mistakeknot added a commit to mistakeknot/aleph that referenced this pull request Oct 27, 2026
…et-bb#6233)"

Full Access keeps pausing on Claude Code's own prompts, as in 0.8.0.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mistakeknot added a commit to mistakeknot/aleph that referenced this pull request Oct 27, 2026
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.

1 participant