Buildverse
← All videos

01Watch & read

VS Code 1.148What Happens When You Close the Window?

27 Nov 2026 · 10:52

Watch on YouTube ↗

VS Code 1.148 adds a preview setting to prevent supported Agent Hosts from going idle during active turns, plus experimental Dev Container handoff. We’ll look at what each feature does, how Microsoft’s chat-start figures are framed, and what to verify before leaving a session unattended. Sources: https://code.visualstudio.com/updates/v1_148 https://code.visualstudio.com/docs/agents/run/remote-agent-sessions https://code.visualstudio.com/blogs/2026/08/26/agent-host-architecture/ https://github.com/microsoft/vscode/issues/348891 https://www.reddit.com/r/vscode/comments/1y3qzji/vs_code_dev_here_yes_a_human_which_bugs_hurt_you/

Chapters

  1. 0:00The Stall
  2. 1:01The Host
  3. 2:24Keep Awake
  4. 4:17Containers
  5. 6:05Speed
  6. 7:46Rough Edges
  7. 9:32Use It Well
  8. 10:24Recap

Commands & links

Article

The Stall

Your coding agent is halfway through a task. You close the editor, step away, and come back to unfinished work. VS Code one point one forty-eight adds a way to keep supported agents working through active turns after the window closes. That matters if a session is doing useful work while you’re away.

It still doesn’t turn every computer into an unattended worker. The failure is familiar: an agent is still working, but the computer goes idle and sleeps. When the developer returns, the session may be stalled instead of finished. A feature request describes exactly that frustration.

The issue is useful context for the release. It records the problem the feature was meant to address, and says the feature was completed for the one point one forty-eight milestone. That distinction matters. Closing an editor window and putting the host computer to sleep are different events.

Version one point one forty-eight addresses idle sleep during active turns on supported Agent Hosts. It doesn’t promise that work continues after a shutdown. The feature needs a host that remains available to run the session.

The Host

The key idea is the Agent Host: a separate process that owns the agent session. VS Code says sessions can continue across editor windows and clients because the host, rather than one window, owns the work. So closing a window can leave the session alive. Whether it does depends on the configured run behavior.

Think of the editor as a way to interact with the session, and the host as the process responsible for keeping it going. Microsoft introduced the Agent Host as a separate process for agent sessions. The architecture can support different harnesses, including Copilot and Anthropic’s Claude Agent, while retaining their distinct SDKs, loops, and tools. That description helps explain why the feature is framed around the host.

The host owns sessions, while each agent harness still brings its own way of working. The architecture doesn’t mean every harness has identical behavior. It gives them a shared place for sessions to live. The host model changes where the session lives.

It doesn’t erase the differences between ways of running it. For remote sessions, VS Code documents two behaviors: run in the background, or use Remote VS Code. In the second mode, closing that editor window stops the agent. That setting changes the meaning of “close the window.”

Before assuming a task will continue, identify which behavior you selected. The same action can have a different result depending on that choice.

Keep Awake

The new keep-awake option is a preview setting in the one point one forty-eight release notes. It prevents idle sleep on supported Agent Hosts during active turns, including after the editor window closes. The wording is narrow by design: active turns, supported hosts, and idle sleep. This is a machine power-state feature.

It’s not a promise that an agent will keep making progress through every interruption. Think of this as preserving the conditions for work already underway. It isn’t a general guarantee that an agent will run forever, or that it can survive the host being shut down. The setting can prevent an idle sleep event while a supported host is handling an active turn.

It can’t do the work of a powered-on computer. That’s a practical boundary to remember when a task matters: the feature lowers one failure risk, but doesn’t remove the need to check the session. The setting is called sessions dot keep awake while working. VS Code lists three modes: when plugged in, always, and never.

When plugged in is the default. The default ties the behavior to a power condition. The always option asks the host to prevent idle sleep regardless of that condition. Never opts out.

Choose based on the machine and the task. A laptop on battery has a different tradeoff from a plugged-in desktop. The release notes name the modes, but they don’t claim that one mode is right for every workflow. This is a preview feature, and it applies to supported Agent Hosts.

It prevents idle sleep while an agent is in an active turn. It doesn’t promise that the agent will finish correctly. It also doesn’t make an unavailable host available. If the computer shuts down or loses power, the setting can’t keep the session running.

For a long task, that means you should think about both the editor behavior and the machine running the host. The useful question isn’t only, “Can I close this window?” It’s also, “What is still running after I do?”

Containers

The same release also adds an experimental Dev Container workflow for agents. VS Code describes an isolated Ubuntu workspace with an Agent Host, and a way to hand off from an existing session when the relevant setting is enabled. That makes this a different kind of improvement from keep-awake. One works on idle sleep; the other changes the environment where a task can run.

Because it’s experimental, read the feature as an option to explore, not as a finished guarantee for every project. The basic path is: create the container workspace, connect an Agent Host, then hand off the existing task. The benefit is isolation. The task can move into a contained workspace rather than changing the computer’s sleep behavior.

That can be useful when you want the agent working in a distinct environment. It doesn’t remove the need for a running host. And because the flow is experimental, check what happened after the handoff. Confirm that the task landed in the workspace you intended.

The remote-session documentation gives the practical requirements for remote Dev Containers. You need the installed Agents window, a supported host, and Docker installed and running on that host. That means container handoff depends on the machine that hosts the container, not just the editor view you’re looking at. If Docker isn’t running on the host, this workflow has a dependency to resolve before the agent can use that container path.

A container is useful when the task needs an isolated environment or a distinct workspace. It doesn’t remove the host requirement. Docker still has to run, and the session still needs the right host and settings. The feature is experimental, so confirm that the session appears and behaves as expected before stepping away.

A quick check can catch a handoff that didn’t land where you expected. Verify the workspace and make sure you can find the session again. Treat isolation as a boundary for the task environment, not a substitute for monitoring whether the work is progressing.

Speed

Version one point one forty-eight also reports faster chat starts in the Agent Host. Microsoft says Agent Host chat responses begin thirty percent faster on average than in the previous Stable version. That sounds useful, but the release notes don’t provide a test method or sample size. So the precise claim is about response start time, averaged across Microsoft’s measurement.

It isn’t a claim that coding tasks finish thirty percent sooner. The same release notes compare Agent Host start times with the old harness. Microsoft says the new start times are within about five percent of the old harness. This is vendor-reported performance context, not an independent benchmark in the material we’re reviewing.

The release notes don’t give enough detail here to reproduce the comparison or judge its test conditions. Read those numbers as a transition claim: faster than the previous Stable release, and close to the old harness. The figures answer a narrow question about chat response start times. They don’t measure how quickly an agent completes a coding task.

A response that begins sooner can make an interface feel more responsive. That’s a reasonable implication, but it isn’t the same as a measured productivity gain. Keep the exact metric on screen and in mind. It prevents a start-time claim from turning into a broader claim about code quality or task speed.

Microsoft’s two figures have different comparisons. The thirty percent figure compares the new Agent Host with the previous Stable version. The roughly five percent figure compares it with the old harness. Keep the baselines separate.

They don’t add up to a broader claim about coding speed. The one useful takeaway is that Microsoft says the new host has improved start times against one baseline and is close to another.

Rough Edges

The release addresses performance concerns that Microsoft says developers raised during the move to Agent Host. But speed isn’t the only thing developers notice. A November feedback thread also surfaced issues around model selection and agent-session visibility. These are reports from a discussion, so they show examples of friction rather than a measured picture of how often it happens.

They’re still relevant when evaluating a workflow that depends on leaving an agent to work while you’re away. In a November thread, developers reported that Copilot model selection sometimes reverted or ignored their choice. A VS Code developer responded with the chat dot default model setting and troubleshooting steps. That’s useful, but it is a report in a feedback thread, not proof that every user has the same problem.

The practical lesson is modest: if your task depends on a particular model, verify the selection before starting a long run. The same discussion included a report that the Agents window did not show chat sessions connected in a Dev Container. That matters because a long-running session is only useful if you can find and inspect it when you return. This is one user report, not a statement that container sessions are always missing.

It does point to something worth checking after handoff. Make sure the interface shows the session you expect, especially before you rely on it to keep working unattended. These reports don’t cancel the new features, but they do shape how cautiously to use them. After handoff, check that the right session is visible.

If model selection matters, verify the chosen model before starting a long task. For work you can’t afford to lose, check the host and run behavior too. That small amount of verification gives you a clearer picture of what continues after the editor window closes. The release adds useful controls, but you still need an observable session and a host that stays available.

Use It Well

For a long task on a local machine, background sessions and keep-awake can help when the editor window closes. For an isolated environment, try the experimental container handoff after checking Docker and session visibility. Before relying on unattended work, verify the session, the host, and the configured run behavior.

That recommendation follows the limits in the documentation: the setting targets idle sleep, and the container workflow has its own prerequisites. A sensible routine is straightforward. Start the task with the run behavior you expect. Confirm the host is available, and confirm the session is still visible after you close the window.

If you’re using a container, check that Docker is running on the host and that the task moved into the intended workspace. Then step away with a clearer idea of what is running, where it is running, and what could interrupt it. For a task that matters, returning to inspect progress is still part of a reliable workflow.

Recap

By the end, remember three things. Keep-awake prevents idle sleep during active turns on supported Agent Hosts. It doesn’t promise work through shutdown. Container handoff adds isolation, but it’s experimental and requires Docker on the host.

Microsoft’s speed figures are about chat starts, and they’re vendor-reported. Verify the session and host before depending on unattended work. Subscribe for more no-hype AI breakdowns.