Blog Network

Microsoft · 2026-11-25 · major

VS Code 1.148 — agents keep working after you close the window

VS Code 1.148 keeps agent hosts awake while agents work, even with the window closed (preview). It can also run agent sessions in Dev Containers, asks you for sudo, ssh and git passwords without showing them to the model, and starts replies 30% faster.

VS Code v1.148 release highlights banner

VS Code 1.148 lets agent work continue while you step away, and can put each agent session in its own container.

Quick facts

Release dateNovember 25, 2026
PreviewKeep agents going (sessions.keepAwakeWhileWorking)
ExperimentalDev Container agent sessions, sandbox profiles, Inbox navigation
Chat speedResponses begin 30% faster on average vs previous Stable
ProtocolAgent Host Protocol 1.1.0
DeprecatedLocal harness (removal February 2027)

What is it?

Keep agents going, a preview in Visual Studio Code 1.148 (released November 25, 2026), stops a supported Agent Host from going to idle sleep while an agent is working, including after you close the window. The release also adds experimental Dev Container agent sessions, sandbox profiles for remote hosts, worktree cleanup on remote hosts and shell password prompts in chat.

How does it work?

Dev Container sessions start an Ubuntu container with an Agent Host inside, on this computer or on an SSH host, WSL distribution or Dev Tunnel that has Docker, with no devcontainer config file needed. An agent can also hand a task off: it creates the container on its own host, continues the work in a new session there, and can report back when done. When sudo -A, ssh or git asks for a password inside a Copilot harness session, chat asks you, and the answer goes only to that program.

Why does it matter?

Long agent runs no longer die because a laptop went to sleep, and risky tasks can run in a throwaway container instead of on your own machine. Passwords typed for shell tools never reach the model, which removes a common reason to stop an agent mid-task. The Agent Host Protocol 1.1.0 update also brings Skills over MCP (SEP-2640) to the editor.

Who is it for?

VS Code and GitHub Copilot users running long agent sessions

Frequently asked questions

Will VS Code 1.148 keep my laptop awake on battery while an agent works?
Not by default. VS Code 1.148's sessions.keepAwakeWhileWorking setting defaults to whenPluggedIn, which blocks idle sleep only while the machine is plugged in. Setting it to always also keeps the machine awake on battery, and never allows idle sleep again. It works for a supported Agent Host, even after you close the window.
What do I need to run agent sessions in a Dev Container in VS Code 1.148?
VS Code 1.148 Dev Container agent sessions are experimental and need Docker on the host, which can be this computer, an SSH host, a WSL distribution or a Dev Tunnel. Turn on chat.agentHost.devContainer.environments.enabled. No devcontainer configuration file is needed; VS Code creates an Ubuntu container with an Agent Host and keeps files in a Docker volume.
Does the model see my sudo or ssh password in VS Code 1.148?
No. VS Code 1.148 release notes say that when sudo -A, ssh or git asks for a password, passphrase or confirmation in a Copilot harness session, chat asks you directly and the answer is not sent to the model. Prompts that cannot be answered, such as in Autopilot, are canceled. The feature can be turned off with chat.agentHost.copilot.shellAuthentication.enabled.
How much faster is chat in VS Code 1.148?
Microsoft says Agent Host chat responses in VS Code 1.148 begin 30% faster on average than in the previous Stable version, and chat start times are now within about 5% of the old harness. The release notes do not describe how this was measured. The VS Code CLI is also about 40% smaller.

Try it

Update VS Code to 1.148, then set sessions.keepAwakeWhileWorking

Sources · 2 outlets

Tags

  • vscode
  • visual-studio-code
  • microsoft
  • github-copilot
  • coding-agents
  • dev-containers
  • agent-host
  • mcp
  • ide

← All releases