Windsurf & local agents
Does Windsurf stop when your laptop sleeps?
Short answer: usually yes. Windsurf's agent works through an editor on your own computer, so full system sleep pauses a running session. A locked screen alone does not.
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).
Where the agent runs
Windsurf is a desktop editor. Its Cascade agent edits files and runs terminal commands in your local workspace, so the work happens on your machine even though the model itself is hosted.
A locked screen doesn't pause that process because the CPU keeps running. Full system sleep does, and the session resumes only when you wake the machine. A remote workspace over SSH can also stall if your connection drops.
| Setup | Runs on | Laptop sleeps? |
|---|---|---|
| Agent in a local workspace | Your machine | Paused while asleep |
| Locked screen only | Your machine | Keeps working |
Questions
- Does a locked screen stop Windsurf?
- No. The processes keep running with the screen locked, unless your power plan puts the machine to sleep soon after.
- How do I keep my laptop awake during a long run?
- Use your OS: set Sleep to Never while plugged in on Windows, or run
caffeinate -son a Mac. - Does this site stop system sleep?
- No. It keeps the display on while the tab is open. See the AI agent page.
Related: Claude Code · ChatGPT · Gemini · Perplexity · Cursor · GitHub Copilot · OpenAI Codex · Grok · DeepSeek · Claude · Cline · All AI tools compared · Any local agent · Wake lock not working?. Last checked October 2026; these products change often, so confirm against the vendor's current docs.