Start an agent on a long task and close the window. Until now the machine would fall asleep halfway and the work stopped there. With 1.148 that flips: a supported Agent Host keeps the machine awake while the agent works, including after you close the window, and releases the hold shortly after the work ends. The setting is sessions.keepAwakeWhileWorking.
Fact
The facts: on 25 November 2026 Microsoft announced VS Code 1.148 with Stable status. According to Microsoft, chat responses in the Agent Host begin on average 30% faster than in the previous Stable version, and chat start times are within about 5% of the old harness. The sessions.keepAwakeWhileWorking setting has three modes: whenPluggedIn (default), always and never. The release also brings worktree cleanup on connected remote hosts, to reclaim disk space from inactive agent worktrees, sandbox profiles (experimental), creating a Dev Container for an agent session without writing a configuration (experimental), a fullscreen button for MCP Apps, and the workbench.browser.userAgent setting for the integrated browser.
The default mode protects the battery. whenPluggedIn keeps the machine awake only while it is plugged in. If you want the same on battery, you set always. If you do not want it at all, you set never.
Until now the task waited for you. Now the machine waits for the task.
According to Microsoft, the speed figures are: chat responses in the Agent Host begin on average 30% faster than in the previous Stable version, and chat start times are within about 5% of the old harness. There is no outside check. The company also says why it measures it: the move to the Agent Host made the performance gap against the old harness a recurring topic.
Start one long task, close the window and see whether the machine is awake when you come back.
Official primary sources
Microsoft - Visual Studio Code 1.148, 25.11.2026The visual is generated code-art, no third-party images.