Auto Allow for Copilot Chat (Experimental)
An ON/OFF switch for repeatedly accepting tool confirmations in VS Code chat.
It invokes the existing single-tool Accept action every second while ON.
It does not change chat.tools.global.autoApprove or organization-managed settings.
This is an experimental prototype using an internal VS Code command. It cannot
promise to approve every prompt or work with every Copilot harness/version.
Use
- Install the VSIX using Extensions: Install from VSIX... in the Command Palette.
- Open a trusted workspace and focus the Copilot chat you want to use.
- Click Auto Allow: OFF in the status bar to turn it ON.
- Click again to turn it OFF. The shortcut is
Ctrl+Alt+Shift+A
(Cmd+Option+Shift+A on macOS).
Commands are also available as Auto Allow: Turn ON, Turn OFF,
Toggle ON/OFF, and Show Log.
ON accepts tool actions without examining the command, file, or destination,
including potentially destructive actions. There is no folder scope.
What it can and cannot do
- Uses
workbench.action.chat.acceptTool, found in the locally inspected
VS Code 1.105.1 implementation. Runtime compatibility is checked before enabling.
Presence of the command does not prove it works for every session target.
- In that implementation, VS Code chooses the first unconfirmed tool invocation
in the latest response of the last focused chat widget. Other chats and
windows are not automatically enumerated.
- The command can move keyboard focus back to chat, even when no new tool needs
approval. Turn OFF when you want to work in the editor without interruptions.
- This automates individual tool approval attempts. It does not unlock disabled
settings, enable tools that an administrator blocked, or guarantee compatibility
with mandatory manual-approval configurations. Validate with the actual managed
VS Code/Copilot configuration before relying on it.
- It does not automatically answer agent questions, grant account access, accept
authentication/OS dialogs, or handle arbitrary VS Code modal dialogs.
- The API provides no success signal. The log records ON/OFF and errors, not a
claimed count of approvals. A silent no-op is possible on unsupported chat types.
- OFF stops future attempts. An already dispatched approval cannot be recalled.
Tool actions already approved continue running.
- Reloading, closing, disabling, or uninstalling the extension stops its timer.
It starts OFF after reload and leaves all existing VS Code settings unchanged.
No network requests, telemetry, shell commands, or prompt contents are collected
by this extension. Invoking Accept can authorize other tools that perform those actions.
GitHub Copilot and its account/license must be available separately.
This project is independent of GitHub and Microsoft.
Develop and package
Use Node.js 22 or later for development:
npm install
npm run check
npm test
npm run package
npm run package:verify
package:verify uses unzip on macOS/Linux to inspect the generated archive.
The extension itself has no runtime dependencies. Open this folder in VS Code
and press F5 to launch an Extension Development Host.
Unit tests verify lifecycle and command dispatch with a mocked VS Code API.
They do not verify a live Copilot conversation or an organization's configuration.
Manual verification before release
- Start the Extension Development Host. Confirm the indicator starts OFF.
- With OFF, ask Copilot for a harmless action that normally requests approval.
Confirm the request waits.
- Focus that chat and turn ON. Confirm the supported tool request is accepted.
- Turn OFF before the next request. Confirm it remains pending.
- Turn ON, then reload the window. Confirm the extension starts OFF again.
- Repeat with the VS Code version, chat session target, and organization settings
you intend to support. Also check the documented focus behavior.
Publish
- Create or choose your Visual Studio Marketplace publisher.
- The publisher ID in
package.json is configured as doubleD.
Select that publisher in the dashboard. Add the GitHub repository URL when
you have created the repository.
- Complete the live manual checks above, then run the checks, tests, and package commands.
- Upload the
.vsix in your Marketplace publisher dashboard, or configure the
official publishing workflow.
No GitHub repository or Marketplace listing has been created by this project.
References