Skip to content

feat(ai-chat): support SDK classifier-driven Auto permission mode - #3114

Open
abose wants to merge 2 commits into
mainfrom
ai
Open

feat(ai-chat): support SDK classifier-driven Auto permission mode#3114
abose wants to merge 2 commits into
mainfrom
ai

Conversation

@abose

@abose abose commented Aug 18, 2026

Copy link
Copy Markdown
Member

Companion to the phoenix-pro change adding a 4th permission mode, 'auto', which routes tool-call approval through the Claude Agent SDK's own model classifier instead of a blanket accept-all. The SDK (pinned ^0.2.126, installed 0.2.141) already supports this — no SDK upgrade needed.

  • src-node/claude-code-agent.js: default permission mode changed from acceptEdits to auto (matches the browser default); comments updated — no functional hook changes required, since the existing PreToolUse hooks already defer to the SDK for any mode they don't specifically handle.
  • strings.js: new AI_CHAT_MODE_AUTO / AI_CHAT_MODE_INFO_AUTO strings; renamed 'Full Auto' to 'Allow Everything' throughout (label, consent dialog title/body/button) to stay distinct from the new Auto mode.
  • Extn-AIChatPanel.less: new mode-classifier dot color for Auto; permission dropdown popup capped against the viewport (90vh) instead of inheriting the shared widget's 160px max-height, which forced an unnecessary scrollbar for 4 two-line items.

abose added 2 commits August 18, 2026 22:36
Companion to the phoenix-pro change adding a 4th permission mode,
'auto', which routes tool-call approval through the Claude Agent
SDK's own model classifier instead of a blanket accept-all. The SDK
(pinned ^0.2.126, installed 0.2.141) already supports this — no SDK
upgrade needed.

- src-node/claude-code-agent.js: default permission mode changed from
  acceptEdits to auto (matches the browser default); comments updated
  — no functional hook changes required, since the existing
  PreToolUse hooks already defer to the SDK for any mode they don't
  specifically handle.
- strings.js: new AI_CHAT_MODE_AUTO / AI_CHAT_MODE_INFO_AUTO strings;
  renamed 'Full Auto' to 'Allow Everything' throughout (label, consent
  dialog title/body/button) to stay distinct from the new Auto mode.
- Extn-AIChatPanel.less: new mode-classifier dot color for Auto;
  permission dropdown popup capped against the viewport (90vh)
  instead of inheriting the shared widget's 160px max-height, which
  forced an unnecessary scrollbar for 4 two-line items.
@sonarqubecloud

Copy link
Copy Markdown

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