KEMBAR78
Provide UI entry point for adding to the terminal auto-approve allow list · Issue #253268 · microsoft/vscode · GitHub
Skip to content

Provide UI entry point for adding to the terminal auto-approve allow list #253268

@Tyriar

Description

@Tyriar

Forking off from #252496
Blocked by #252650

We should have a dropdown on the Continue button here:

Image

What this contains needs some thinking.

Some exploration from #252496 (comment)

I'm also thinking how this is similar to workspace trust, where you may want to trust that particular folder, or it's parent:

Image

I wonder if we would help user configure quickly. Say you run npm run build, the "Continue" button dropdown could present options to easily configure it for the future:

  • Auto-approve commands starting with npm
  • Auto-approve commands starting with npm run
  • Auto-approve commands matching npm run build

Maybe that's overkill, we could just show the first and the last one instead.


Similar feature for extension/mcp tools:

Image

const buttons: IChatConfirmationButton[] = [
{
label: continueLabel,
data: ConfirmationOutcome.Allow,
tooltip: continueTooltip,
moreActions: !allowAutoConfirm ? undefined : [
{ label: localize('allowSession', 'Allow in this Session'), data: ConfirmationOutcome.AllowSession, tooltip: localize('allowSesssionTooltip', 'Allow this tool to run in this session without confirmation.') },
{ label: localize('allowWorkspace', 'Allow in this Workspace'), data: ConfirmationOutcome.AllowWorkspace, tooltip: localize('allowWorkspaceTooltip', 'Allow this tool to run in this workspace without confirmation.') },
{ label: localize('allowGlobally', 'Always Allow'), data: ConfirmationOutcome.AllowGlobally, tooltip: localize('allowGloballTooltip', 'Always allow this tool to run without confirmation.') },
],
},
{
label: localize('cancel', "Cancel"),
data: ConfirmationOutcome.Disallow,
isSecondary: true,
tooltip: cancelTooltip
}];

Metadata

Metadata

Assignees

Labels

chat-terminalThe run in terminal tool in chatfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release noteson-testplan

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions