Skip to content

Conversation

@stanislavHamara
Copy link
Contributor

Summary

  • Adds a new "always allow this tool" option (T) to the tool confirmation dialog, allowing users to permanently approve specific tools or commands for the session
  • For shell commands, creates granular permission patterns (e.g., shell:cmd=ls*) that auto-approve the specific command while still requiring confirmation for other commands
  • Exposes the new approve-tool confirmation type via HTTP and ConnectRPC APIs

Details

When a tool requires confirmation, users now have 4 options:

  • Y - approve this call once
  • N - reject with optional reason
  • T - always allow this tool/command for the session
  • A - approve all tools (YOLO mode)

The T option intelligently builds permission patterns:

  • For shell tool running ls -la: adds shell:cmd=ls* to session permissions
  • For other tools like read_file: adds the tool name directly

These patterns leverage the existing permissions system and are persisted with the session.

API

The /resume endpoint now accepts a new confirmation type:

{
  "confirmation": "approve-tool",
  "tool_name": "shell:cmd=ls*"
}

@stanislavHamara stanislavHamara requested a review from a team as a code owner February 2, 2026 13:57
@krissetto
Copy link
Contributor

/review

@stanislavHamara stanislavHamara force-pushed the always-permissions-for-tools-commands branch from 122fe8f to a267087 Compare February 3, 2026 10:42
@stanislavHamara stanislavHamara merged commit da9d7c6 into docker:main Feb 3, 2026
5 checks passed
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.

2 participants