Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Fundamentals
3 min read

VS Code 1.148: AI Agents Prevent Sleep, Run in Containers, Chat 30% Faster

VS Code 1.148 adds a setting to keep the system awake while AI agents work, introduces experimental dev containers for isolated agent environments, speeds up chat responses by 30%, enables password prompts in agent terminals, and ships a Rust-based WebAssembly diff algorithm that doubles diff computation speed.

VS Code 1.148 Release Highlights

Microsoft released Visual Studio Code 1.148 on November 25. The update centers on the editor's built-in AI agent (AI Agent): chat responses are faster, agents can run in their own containers, and the computer will no longer enter sleep during agent tasks. Additional improvements include a Rust-written diff algorithm compiled to WebAssembly.

Faster Chat Responses

According to the release notes, agent host response speed is ~30% faster than the previous stable version. The team acknowledged user complaints about slow first responses after switching to the new agent setup; the gap versus the old local framework is now ~5%. The old local framework is slated for removal in February 2027.

Agent in Its Own Container

An experimental "Create Dev Container" feature provides an isolated Ubuntu environment for the AI agent without requiring a dev container configuration. Files are stored in a Docker volume; the container runs locally where Docker is installed, or on a connected SSH host, WSL distribution, or dev tunnel. Enable via chat.agentHost.devContainer.environments.enabled. A second setting allows the agent to automatically move tasks into such containers when asked to try something in an isolated environment.

Sandbox profiles (also experimental) let developers save a set of sandbox rules under a name and assign them to specific machines — e.g., open network access for a build server, restricted profile for a shared machine.

Prevent Sleep During Agent Work

New setting sessions.keepAwakeWhileWorking prevents the system from entering idle sleep while the agent has an active turn. This persists even if the user closes the window. Default mode whenPluggedIn applies on AC power; on battery the keep-awake behavior is disabled.

Password Prompts in Agent Terminal

Previously, agent commands requiring passwords (e.g., sudo, ssh, git) failed because the agent lacked an interactive terminal. In 1.148 the prompt appears in the chat window. Microsoft notes the answer is sent only to the program, not to the LLM. Disable with chat.agentHost.copilot.shellAuthentication.enabled.

Changes Beyond the Agent

Experimental diff algorithm written in Rust and compiled to WebAssembly: average compute speed >2x faster. Enable via diffEditor.diffAlgorithm.advanced-wasm. Gains are most noticeable when viewing multiple large diffs.

Integrated browser adds workspace-scoped user agent settings and HTTP basic authentication.

VS Code CLI (used for remote SSH setup) reduced ~40% in size.

Agent Host Protocol updated to 1.1.0.

"Agent" window's "Remote Environments" editor redesigned: table shows machine status, last activity, OS. Connection failures open a troubleshooting page explaining possible causes (config, network, remote machine) with retry, open SSH config, or restart WSL actions.

MCP applications gain a fullscreen button.

VS Code 1.148 agent sleep prevention feature
VS Code 1.148 agent sleep prevention feature
VS Code 1.148 remote environments editor
VS Code 1.148 remote environments editor

For attribution, corrections or content rights, contactadmin@besthub.dev

Report an issue with this article

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion