VS Code 1.148 adds a small but practical option for agent-assisted work: while a supported Agent Host is busy, the computer can be kept from entering idle sleep. For tasks that run for a while, an operating system’s automatic sleep behavior can be an unwelcome interruption. The new setting is intended to reduce that risk, giving a task a better chance of continuing while the user steps away or closes the VS Code window.
The feature is tied to supported Agent Hosts, so it should not be treated as a universal setting for every agent or execution environment. Microsoft is offering it as a preview, with three available choices:
- Always stay awake: prevent idle sleep while the agent is working.
- Stay awake only when plugged in: retain the usual sleep behavior on battery, helping avoid additional power consumption.
- Off: do not use the stay-awake behavior.
The change does not alter how an agent performs its work. Instead, it addresses a basic condition around long-running tasks: whether the computer remains available. Previously, users might have needed to adjust operating-system power settings manually, or worry that leaving the machine unattended would pause a task when the system went to sleep. VS Code now offers an option linked to agent activity, reducing the need for that separate configuration.
There are important limits to keep in mind. This is not the same as running a task independently of the computer, and it does not mean every agent will continue after a window is closed. Whether the setting applies depends on Agent Host support, while continuation also depends on how the task itself runs. Since the feature is still in preview, it is best understood as a convenience rather than a guarantee. Users should continue to consider battery life, device temperature, and task progress, especially when running lengthy work on battery power.
The addition points to a broader shift in developer tools: as agents take on more multi-step work, editors need to account for the conditions that let those tasks run reliably, not just provide a place to start them. VS Code 1.148 does not make a sweeping change, but it brings a familiar concern—keeping the computer awake—into the agent workflow. For developers who often leave tasks running in the background, that is a useful quality-of-life improvement. Others can choose whether it suits their power setup.
Source: OSChina
Comments
Checking sign-in status...
Loading comments...