Skip to content

Terminal auto-approve for agent host #322112

Closed

Description

Context:
chat.tools.terminal.enableAutoApprove Probably over-stepping if this leads to enabling all other tool.

We should consider bringing chat.tools.terminal.autoApprove over as well, especially if it's running outside of sandbox. Potentially another step we'd want runtime to go through before they call their built-in shell tool.

This is lot intuitive with our custom terminal tool for AH, but I need to look into how the flow will work with shell tool from CLI SDK.

Activity

  1. added
    agent-host
    on Jun 19, 2026
  2. added
    terminal-auto-approve
    on Jun 19, 2026
  3. anthonykim1 commented on Jun 19, 2026

    @anthonykim1
    ContributorAuthor

    Seems like there is copilot --allow-tool <pass_in_terminal_commands_here> that folks use when first launching Copilot but will need to see what is available for consumers for SDK.

  4. anthonykim1 commented on Jun 19, 2026

    @anthonykim1
    ContributorAuthor

    Plan:

    • PR 1: Respect EnableAutoApprove chat.tools.terminal.enableAutoApprove
      In Agent Host Default Approvals, terminal auto-approve can still happen even when chat.tools.terminal.enableAutoApprove=false, as long as the shell request reaches AH’s unsandboxed command-rule path.

    • PR 2: Use The Real Terminal AutoApprove Setting chat.tools.terminal.autoApprove
      Goal: replace the hardcoded default-only behavior with the actual VS Code terminal auto-approve configuration.

  5. added
    bug
    on Jun 24, 2026
  6. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jun 25, 2026
  7. locked and limited conversation to collaborators on Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agent-hostbuginsiders-releasedterminal-auto-approveverified

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions