Visual Studio Code 1.148 Lets Your PC Stay Awake While AI Agents Run
Microsoft shipped Visual Studio Code 1.148 on November 25 (local time), further polishing the app's AI features with a focus on the agent experience. The most notable addition is a preview feature that keeps the computer from automatically going to sleep while AI agents work, with three settings: always keep the machine awake while agents work, keep it awake only when a laptop is plugged in, or off. The update also adds support for running agents directly in isolated dev containers: VS Code now ships preconfigured Ubuntu containers, so users no longer need to hand-write a devcontainer.json file. It also introduces experimental separate sandbox profiles for different remote agent hosts, letting users grant network access to the agent on one machine while restricting the agent on another.
ITHome reported on November 27 that Microsoft released Visual Studio Code 1.148 on November 25, local time, further refining the app's AI features with a focus on improving the agent experience. The update's most notable new feature allows AI agents to keep the computer from automatically going to sleep while they work.
The feature is currently in preview and offers three settings: always keep the computer awake while agents work, keep it awake only when a laptop is plugged in, or switch it off entirely.
Another key update adds support for running agents directly in an isolated dev container. Previously, users needed a configuration file, typically named devcontainer.json, to place an agent in a standalone development container. VS Code now provides preconfigured Ubuntu containers, so agents can be launched without writing a configuration file yourself.
VS Code has also refined how isolated environments are managed. According to ITHome, the new version adds separate sandbox profiles for different remote agent hosts, allowing permissions to be set according to the environment each agent runs in.
The feature is still experimental. For example, a user can allow the agent on one machine to access the network while restricting the permissions of the agent on another machine. Sandbox profiles can also be saved for later reuse.
The most important new features and improvements in VS Code 1.148:
Keep agents running (preview): prevents supported hosts from automatically going to sleep due to inactivity while agents work.
Worktree cleanup: clears idle agent worktrees on remote hosts to free up disk space.
Sandbox profiles (experimental): customize sandbox rules for individual remote agent hosts and save profiles for reuse.
Create dev container (experimental): create an isolated Linux working environment for agents without manually writing container configuration.
Agent chat performance improvements: reduces the time spent waiting for the Agent Host to start responding.
Reference: https://code.visualstudio.com/updates/v1_148