GitHub Copilot
Does GitHub Copilot stop when your laptop sleeps?
Short answer: it depends which Copilot. The Copilot cloud (coding) agent runs on GitHub's infrastructure, while agent mode in VS Code runs against your own machine.
Pick a duration and hit start.
Duration
- Stealth screen
- — covers the page with black (or your own wallpaper) so it looks like nothing is open.
- Fullscreen
- — the same cover, edge to edge. Press Esc to leave.
- Float window
- — a tiny always-on-top timer you can park in a corner while you work in other windows (Chrome, Edge, Brave, Opera only).
Ambient sound
Starts only when you press Play. It fades out on its own, when you stop the tool, and when you enter stealth screen (unless you tick the box above).
Two different things called Copilot
GitHub's Copilot coding agent runs in a GitHub Actions-powered environment in GitHub's cloud, not on your computer, and its work continues if you close VS Code. It doesn't depend on your laptop staying awake.
Agent mode in VS Code is different: it runs against your own machine (or a remote environment such as a Codespace) and is meant to be used while you're present, so a sleeping laptop interrupts a local session.
Which Copilot runs where
| Copilot feature | Runs on | Laptop sleeps? |
|---|---|---|
| Coding agent (assign an issue) | GitHub's cloud | Keeps working |
| Chat on github.com | GitHub's servers | Keeps working, you just lose the live view |
| Agent mode in VS Code | Your machine | Interrupted |
| Agent mode in a Codespace | The Codespace VM | Usually keeps working until the Codespace idles out |
| Copilot CLI | Your terminal | Interrupted |
Model inference for any Copilot feature happens on GitHub's side. The question is where thetools run: terminal commands, file edits and test runs that agent mode performs execute on whatever machine hosts the workspace, which is why a local session is the one a sleeping laptop breaks.
What a screen wake lock does and doesn't do
If you're watching agent mode work in VS Code, a screen wake lock keeps your display from locking so you can follow along. It does not prevent full system sleep or a closed lid. See our AI agent page for what actually controls that.
Where this tool helps: if you want to watch a long response or run finish without your display locking partway through, it keeps the screen on for as long as you choose. It does not stop a closed lid or full system sleep, which no browser tab can prevent; see the screen-lock vs. system-sleep distinction.
Questions
- Does the Copilot coding agent need my laptop on?
- No. It runs in GitHub's cloud environment, so your laptop doesn't need to stay awake.
- Does Copilot agent mode in VS Code stop if my laptop sleeps?
- Yes, usually. It runs against your local machine (or a remote environment), so system sleep interrupts a local session.
- What if I close VS Code while the coding agent is working?
- The coding agent isn't tied to your editor. It works in a GitHub-hosted environment and reports back through a pull request, so closing VS Code or shutting your laptop doesn't stop it.
- Does a Codespace keep running if my laptop sleeps?
- The Codespace is a cloud VM, so it keeps running, but it stops after an idle timeout (30 minutes by default). Long unattended work may need a longer timeout in your Codespaces settings.
- Can this site stop my laptop sleeping?
- No. It only keeps the display on while the tab is open and visible.
Related: ChatGPT · Claude Code · Gemini · Perplexity · Cursor · Any local agent · Wake lock not working?. Last checked October 2026; these products change often, so confirm against the vendor's current docs.