Visual Studio Code 1.148 Adds Wake-Lock for AI Agents, Sandbox Profiles
With the release of Visual Studio Code 1.148, Microsoft has introduced a new set of enhancements that, consistent with recent versions, primarily aim to refine the application for AI-related features and agents.
The standout addition in this version is a capability that enables VS Code keep your PC awake while AI agents are working.
The new feature is now in preview, and it comes with three modes. You can choose to have the PC stay awake at all times during AI agent activity, or set it to only prevent sleep when your laptop is connected to power. You can also disable the feature completely.
Another notable addition is the ability to run agents in isolated development containers. Prior to this update, placing an agent within an isolated Dev Container required a configuration file, typically named devcontainer.json. This latest version allows you to start agents in a pre-configured Ubuntu container without the need for manual setup.
VS Code’s isolated environment capabilities extend further, as the latest release now provides the option to establish distinct sandbox profiles for every remote agent host. This experimental feature enables the assignment of varying permissions to agents based on their specific execution location.
To illustrate, agents operating on one machine can be granted network access, whereas agents on a different machine can be kept under stricter limitations. You can also save and reuse individual sandbox profiles.
Here are the most important new features and improvements in VS Code 1.148: Keep agents going (Preview): Stop supported hosts from entering idle sleep while agents are active. Worktree cleanup: Reclaim disk space from inactive agent worktrees on remote hosts. Sandbox profiles (Experimental): Tailor sandbox rules to each remote agent host with reusable profiles.
Create Dev Containers (Experimental): Give an agent an isolated Linux workspace without writing a container configuration. Agent chat performance: Spend less time waiting for Agent Host chat responses to begin. You can find more information about the latest Visual Studio Code update in Microsoft’s official release notes.