Skip to content

Automatically clicks the Continue button in GitHub Copilot Chat Agent Mode, so your repetitive commands run without manual approval.

Notifications You must be signed in to change notification settings

PawiX25/copilot-auto-continue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

copilot-auto-continue

A tiny console snippet that automatically clicks the Continue button in GitHub Copilot Chat Agent Mode, so you can keep your workflow moving without manual approval.

Description

When using Copilot’s Agent Mode, every action (even harmless ones like git status) prompts you to click Continue. This snippet removes that friction by auto‑clicking the button as soon as it appears—no more endless taps! image

⚠️ Important: Script Persistence

Scripts pasted into the Developer Console are NOT saved and will be lost when you restart VS Code.

For Permanent Auto-Loading (Recommended)

Use the Custom CSS and JS Loader extension to automatically load your script on every VS Code startup:

  1. Install the extension from the marketplace
  2. Save the script to a .js file
  3. Configure the extension to load your file
  4. Enable custom CSS/JS and restart

This way, the auto-continue functionality will work immediately every time you open VS Code!


Installation

Console Paste Method (Temporary)

  1. Open VS Code (Desktop or Web).
  2. Go to Help → Toggle Developer Tools.
  3. Switch to the Console tab, type:
    allow pasting
    and press Enter.
  4. Paste the snippet below into the console and hit Enter:
(function(){
  const COOLDOWN_MS = 2500;
  let lastClick = 0;

  function clickIfFound() {
    const now = Date.now();
    if (now - lastClick < COOLDOWN_MS) return;

    // Continue
    const continueBtn = Array.from(
      document.querySelectorAll('a.monaco-button[role="button"], button.monaco-button')
    ).find(el => /continue/i.test(el.textContent?.trim()));
    if (continueBtn) {
      continueBtn.click();
      lastClick = now;
      console.log('[auto] Clicked Continue');
    }

    // Keep
    const keepBtn = Array.from(
      document.querySelectorAll('a.action-label[role="button"]')
    ).find(el => /^keep$/i.test(el.textContent?.trim()));
    if (keepBtn) {
      keepBtn.click();
      lastClick = now;
      console.log('[auto] Clicked Keep');
    }
  }

  const intervalId = setInterval(clickIfFound, 1000);
  const observer   = new MutationObserver(clickIfFound);
  observer.observe(document.body, { childList: true, subtree: true });

  window.stopAutoContinue = () => {
    clearInterval(intervalId);
    observer.disconnect();
    console.log('[auto] stopped.');
  };
})();

Usage

Once pasted, the script immediately begins watching for and clicking the Continue button whenever it appears.

You’ll see logs in your console each time it clicks.

Stopping

To halt the auto‑clicker at any time, switch to the console and run:

window.stopAutoContinue();

About

Automatically clicks the Continue button in GitHub Copilot Chat Agent Mode, so your repetitive commands run without manual approval.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •