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.
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!

Scripts pasted into the Developer Console are NOT saved and will be lost when you restart VS Code.
Use the Custom CSS and JS Loader extension to automatically load your script on every VS Code startup:
- Install the extension from the marketplace
- Save the script to a
.jsfile - Configure the extension to load your file
- Enable custom CSS/JS and restart
This way, the auto-continue functionality will work immediately every time you open VS Code!
- Open VS Code (Desktop or Web).
- Go to Help → Toggle Developer Tools.
- Switch to the Console tab, type:
and press Enter.
allow pasting
- 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.');
};
})();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.
To halt the auto‑clicker at any time, switch to the console and run:
window.stopAutoContinue();