← All posts

VS Code 1.148: what's new and how to keep agents awake

2026-11-27 · 4 min read

VS Code 1.148 is the November 25 Stable release, and its main change is that a coding agent can keep working after you close the window: a new Preview setting stops the machine from going to sleep while an agent is mid-task. It also runs agent sessions inside isolated Dev Containers, and it puts password prompts from sudo, ssh and git into chat, where your answer goes to the program and not to the model.

The release went out with a post from @code, the official Visual Studio Code account, saying the update "keeps agent work moving, even when you step away!" The post lists three features: sleep prevention, Dev Container sessions and disk cleanup for old worktrees. It links to Microsoft's 1.148 release notes and had about 27,800 views when we checked. The problem it fixes is a familiar one: you start a long agent run, walk away, and come back to a laptop that fell asleep an hour in.

What's new in VS Code 1.148

According to the release notes, a supported Agent Host can now "keep its machine awake during active turns, including after you close the window," and it lets go of that hold shortly after the work ends. Anthropic went a different way in September: Claude Code Projects runs the work as cloud sessions that continue after you log off. VS Code keeps your own machine awake instead.

The rest of the release, from Microsoft's notes:

Feature Status Setting or command What it does
Keep awake Preview sessions.keepAwakeWhileWorking Blocks idle sleep during agent turns. Values: whenPluggedIn (default), always, never
Dev Container sessions Experimental chat.agentHost.devContainer.environments.enabled Runs a session in an Ubuntu container with its own Agent Host, files kept in a Docker volume
Container handoff Experimental chat.agentHost.devContainer.handoff.enabled Lets an agent move a running session into a new container and carry on
Password prompts in chat Copilot harness sessions chat.agentHost.copilot.shellAuthentication.enabled sudo -A, ssh and git prompts show up as chat questions
Worktree cleanup Now in Chat too Chat: Open Worktree Cleanup Shows worktree sizes and removes old ones, remote hosts included

On the password feature, Microsoft says your answer "goes only to that program and isn't sent to the model." If nobody is around to answer, for example in Autopilot mode, the prompt is canceled rather than left hanging.

Microsoft also says Agent Host chat responses start 30% faster on average than in the previous Stable version, and that the Rust-based CLI is about 40% smaller. The old Local harness is now deprecated and will be removed in February 2027, so anyone still on it should switch to the Copilot harness in the next couple of months.

How to try it

  1. Update. In VS Code, run Check for Updates and confirm the About box says 1.148.0.
  2. Open Settings and search for sessions.keepAwakeWhileWorking. The default, whenPluggedIn, only keeps a plugged-in machine awake. Pick always to stay awake on battery too (expect the battery to go faster), or never to turn the feature off.
  3. Start an agent task you'd normally babysit, such as "Add tests for the invoice module and fix whatever fails," then close the window. Leave the VS Code app running: the notes promise the work continues after the window closes, not after you quit the app.
  4. To isolate a session, turn on chat.agentHost.devContainer.environments.enabled. Then go to Remote Environments, choose More Actions, then Create Dev Container on a host that has Docker. This can be your own machine, an SSH host, a WSL distribution or a Dev Tunnel.
  5. When the session list fills up, open the Command Palette and run Chat: Open Worktree Cleanup to see which leftover worktrees are using disk space.

Our read

The keep-awake setting is small but useful, since a sleeping laptop is a dull, common way for an unattended run to die. The Dev Container option matters more if an agent works near customer data or production credentials: the container fences it in, and the password feature keeps secrets out of the model's context. Both are Preview or Experimental, so expect rough edges.

Microsoft is pushing the same idea in other products. In September it pitched Copilot Autopilot as an agent that keeps working after you log off in Microsoft 365, and in October GitHub Copilot Fusion stopped asking users to pick a model at all. VS Code 1.148 is a smaller step in that direction, and it runs on your own machine.

What it means for a business

Once agents run while nobody watches, the human part of the job moves. Someone still writes the task, decides what the agent may touch and checks the result in the morning. That's true whether the agent is writing code or chasing unpaid invoices. If you're not sure which of your processes could run that way, New Face Design's free process audit can help you sort the ready ones from the rest.

08 / Start here

Which of this can you use today?

Tell us what you use today and we'll reply within one business day with what it would take. Free, 20 minutes, no pitch deck.

Email

pgorski@newfacedesign.com

Phone

+1 (773) 627-2176

Based in

Chicago area

Working with clients everywhere

Skip the form: grab a 20 minute slot.

Open the calendar →