Skip to content

Explicitly call out somewhere the limitations of terminal auto approve #8987

Closed

Description

@Tyriar

The dialog mentions it's best effort:

Image

That links to here: https://code.visualstudio.com/docs/copilot/security#_security-considerations

Nick Trogh (@ntrogh) I want somewhere that I can go into the technical limitations of terminal auto approve. High level summary is:

  • Explain what best effort means; enabling terminal auto approve comes with risks. Sub-commands may not be detected in practice. It's important to take steps to prevent prompt injection like being careful about anything entering the chat session from the internet; the agent's output is trusted as not being malicious
  • From 1.106 we will be using tree sitter to parse the commands (Use tree sitter for terminal auto approve command parsing vscode#261794). There is no zsh grammar so zsh will use the bash grammar and therefore it will not detect sub-commands in zsh-specific constructs
  • There is a set of default rules that aims to improve safety and reduce noise, there's no guarantees something unexpected won't run though
  • Ignoring default rules
  • File write redirection detection

Activity

  1. added
    doc-enhancement
    on Oct 27, 2025
  2. added a commit that references this issue on Nov 6, 2025
    b686e97
  3. added a commit that references this issue on Nov 6, 2025
    fc10b72
  4. added a commit that references this issue on Nov 12, 2025
    9ac43da
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

doc-enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions