Visual Studio Code 1.148

Downloads for 1.148.0

Windows
x64Arm64

Release highlights

Keep agent work moving, even when you step away. This week, chat responses start faster and active agents can keep their hosts awake. Give a task its own Dev Container, and reclaim disk space from old worktrees without switching windows.

Watch release highlights

Already installed? Use Check for Updates in VS Code. For upcoming features, use the Insiders build.

Agents

Improved chat performance

This week we've made several improvements to the performance of chat in the Agent Host. On average you can expect to see responses begin 30% faster than in our previous Stable version.

We appreciate your feedback as we've transitioned our harness to the Agent Host, and the performance difference compared to the old harness was a recurring topic of discussion. With this release, we see chat start times within ~5% of those of the old harness, and we will continue to find ways to further improve in upcoming releases.

Prevent idle sleep while an agent works (Preview)

Setting: sessions.keepAwakeWhileWorking Open in VS Code Open in VS Code Insiders

Avoid stalled unattended work when the machine running your agent would otherwise idle-sleep. A supported Agent Host can keep its machine awake during active turns, including after you close the window, and release the hold shortly after work ends.

Choose a mode:

  • whenPluggedIn (default): Prevent idle sleep while the host is plugged in.
  • always: Prevent idle sleep during agent work, including on battery.
  • never: Allow idle sleep during agent work.

Inbox navigation and organization (Experimental)

Setting: sessions.list.inboxAutoAdvance Open in VS Code Open in VS Code Insiders

Inbox mode groups Agents window sessions by what needs your attention. Enable sessions.list.inboxEnabled Open in VS Code Open in VS Code Insiders to use it.

You can choose where to continue after replying to an Inbox session:

  • auto (default): Open the next Inbox conversation, or focus the Inbox heading when none remain. With a screen reader attached, stay in the current conversation instead.
  • on: Always advance through the Inbox, including with a screen reader.
  • off: Stay in the current conversation.
  • newSession: Open New Session with its input focused, even when other Inbox conversations remain.

Remote agents

Redesigned Remote Environments editor

The Remote Environments editor in the Agents window is where you manage the machines that your agent sessions run on. Its redesigned table shows the status, last activity, and operating system of each environment, so you can see at a glance which ones are connected and in use.

Connect and New Session stay on each row, and other actions, such as configuring the agent run behavior or updating an outdated server, are in More Actions. Use Filter in the search box to sort the table, or to group environments by type or status.

Screenshot showing the Remote Environments editor with SSH hosts, a WSL distribution, Dev Containers, a Dev Tunnel, and a GitHub Environment, each with its status, last activity, and operating system.

Troubleshoot remote connections

When a connection fails, it can be hard to tell whether the cause is your configuration, the network, or the remote machine. Select Troubleshoot in the notification of a failed connection, or More Actions > Troubleshoot Connection... on any environment, to open a page that explains what went wrong and offers actions to fix it, such as retrying, opening your SSH configuration, or restarting a WSL distribution. The page can also collect a diagnostic report for you to review and share.

Screenshot showing the Troubleshoot connection page for an SSH host where authentication failed, with the connection details, an explanation, a command to test the connection, and actions to retry and to copy a diagnostic report.

Learn more about troubleshooting remote sessions.

Worktree cleanup on remote hosts

Reclaim disk space on connected remote Agent Hosts with worktree cleanup. The cleanup editor includes worktrees on hosts that support cleanup. Rows and confirmations identify the owning host, so identical paths on different machines remain distinct. Disconnected or unsupported hosts are unavailable for cleanup.

Previously, you could only invoke the worktree cleanup from the Agents window. You can now also access it directly from the Chat view or the Command Palette. Run Chat: Open Worktree Cleanup from the Command Palette or select Open Worktree Cleanup in the Chat view's menu.

Learn more about worktree cleanup and its safety constraints.

Create Dev Containers for agent sessions (Experimental)

Settings: chat.agentHost.devContainer.environments.enabled Open in VS Code Open in VS Code Insiders , chat.agentHost.devContainer.handoff.enabled Open in VS Code Open in VS Code Insiders

Run agent sessions in an isolated Linux container without writing a Dev Container configuration first. These Dev Containers are Ubuntu containers with an Agent Host inside and keep their files in a Docker volume. You can create them on this computer or on a connected SSH host, WSL distribution, or Dev Tunnel that has Docker.

In Remote Environments, select Create Dev Container in More Actions of a connected host. To create one on this computer, group the table by type (Filter > Group By > Type) and select Create Dev Container on the Dev Containers group. Then choose the Dev Container in the Environment picker to start a session in it.

Screenshot showing the Remote Environments editor grouped by type, with Dev Containers on This Computer and on a WSL distribution, and the Create Dev Container action on the Dev Containers group.

When you also enable chat.agentHost.devContainer.handoff.enabled Open in VS Code Open in VS Code Insiders , an agent can create a Dev Container from an existing session, for example when you ask it to try something in an isolated environment. It creates the container on the host that the session runs on and continues the task in a new session inside the container, which can report back when it's done.

Screenshot showing a chat where the agent creates a Dev Container on This Computer and continues in a new session inside it to try the latest Python.

Sandbox profiles for remote environments (Experimental)

Setting: chat.agent.sandbox.profiles.enabled Open in VS Code Open in VS Code Insiders

When you use remote agent hosts, you might want different sandbox rules for each host. For example, give a build server open network access but keep a shared machine locked down. Sandbox profiles let you save a set of agent sandbox settings under a name and assign one to each remote agent host.

Manage profiles with the Sandbox: Manage Sandbox Profiles command, and assign them to remotes in the Remote Environments editor. This assignment is stored on the remote, so every device that connects to it uses that same profile. Organization sandbox policies still apply and the remote needs an up-to-date VS Code Server.

MCP

Support for fullscreen MCP Apps

MCP Apps now offer a "fullscreen" button, which moves the app into the editor area in the Editor window or the Secondary Side Bar in the Agents window.

Integrated browser

Set a default user agent

Setting: workbench.browser.userAgent Open in VS Code Open in VS Code Insiders

You can now set the user agent the integrated browser uses. For example, set it in your workspace settings to test how your site responds to a particular user agent without changing it for your other projects.

Sign in to sites that use HTTP Basic authentication

You can now sign in to sites that use HTTP Basic authentication in the integrated browser.

Screenshot showing the integrated browser's HTTP Basic sign-in prompt with empty username and password fields.

Learn more about the integrated browser in the Integrated Browser documentation.

Editor Experience

New-tab experience (Experimental)

Setting: workbench.editor.newTabButton Open in VS Code Open in VS Code Insiders

We are rolling out an experimental new-tab button in the editor tab bar, or you can enable workbench.editor.newTabButton Open in VS Code Open in VS Code Insiders directly.

Selecting + opens a menu to create an untitled text file, a Markdown document, a chat editor, or an integrated browser tab. The button remembers your last choice, so selecting + again creates the same kind of tab.

Screenshot of the new tab button menu in the editor tab bar, with New Markdown Document marked as recently used.

Actions for new untitled files (Experimental)

Setting: workbench.editor.experimental.emptyEditorHintActions Open in VS Code Open in VS Code Insiders

We are rolling out a redesigned empty editor experience for new untitled files, or you can enable workbench.editor.experimental.emptyEditorHintActions Open in VS Code Open in VS Code Insiders directly.

A centered list of actions appears below line 1—generate code, start a chat editor, select a language, or reopen the file in another editor such as the Markdown editor—instead of clickable links inline on line 1. Moving the actions off line 1 causes fewer accidental clicks when you click into a new file to start typing. Start typing to dismiss the list. The list replaces the classic hint only when workbench.editor.empty.hint Open in VS Code Open in VS Code Insiders is set to text, which is the default.

After Before
Screenshot of the new empty untitled editor showing the tab bar, line 1 clear at the top, and the centered action list below for generating code, starting a chat editor, selecting a language, or opening in the Markdown editor. Screenshot of the previous empty untitled editor showing clickable hint links inline on line 1.

Rust-based WebAssembly diff algorithm

Setting: diffEditor.diffAlgorithm Open in VS Code Open in VS Code Insiders

We are rolling out an experimental Rust-based diff algorithm compiled to WebAssembly (@vscode/diff) via an experiment. You can also try it directly by setting diffEditor.diffAlgorithm Open in VS Code Open in VS Code Insiders to advanced-wasm. In early rollout measurements, the WebAssembly backend computes diffs more than 2× faster at the median across all diffs, with noticeably fewer slow-tail timeouts. You may not notice the difference on a single small file, but it shows when reviewing multiple heavily modified files at once in the multi-file diff editor.

Floating comment control (Experimental)

Settings: comments.thread.experimental.style Open in VS Code Open in VS Code Insiders , chat.experimental.agentsWindowEditorComments Open in VS Code Open in VS Code Insiders

The current comment control appears inline with the code, which can push code apart and make it harder to read. A floating comment control addresses this by appearing alongside the code instead. They stay in the same order as the lines they refer to, and can be resized, expanded, and collapsed.

Terminal

Enter passwords for agent shell commands in chat

Setting: chat.agentHost.copilot.shellAuthentication.enabled Open in VS Code Open in VS Code Insiders

Previously, in Copilot harness sessions, commands that needed a password, such as sudo, ssh, or git, failed because the agent runs commands without an interactive terminal by default.

When sudo -A, ssh, or git asks for a password, passphrase, or confirmation, the prompt now appears as a question in chat. Your answer goes only to that program and isn't sent to the model.

Screenshot showing a "sudo needs a password" question in chat with the command, a note that the answer isn't sent to the model, and a masked password field.

Prompts that nobody can answer, such as in Autopilot, are canceled. To turn off this behavior, set chat.agentHost.copilot.shellAuthentication.enabled Open in VS Code Open in VS Code Insiders to false.

Extension Authoring

Agent Host Protocol 1.1.0

We've released version 1.1.0 of the Agent Host Protocol, which is the protocol that powers our agent system and can be integrated with or hosted by your own tools. This version includes many improvements, including:

  • TCP port forwarding support and windowing mechanics for traffic control over networks
  • The ability to move chats between sessions and per-chat harness selection
  • Support for representing SEP-2640 Skills over MCP
  • Support for partial reads and HTTPS interoperability

We also wrote a blog post about the background and engineering that went into the protocol and agent architecture.

Engineering

VS Code CLI is 40% smaller

The Rust-based VS Code CLI is about 40% smaller, with slight variations per platform. The CLI can be downloaded as a standalone executable and is also used to bootstrap Remote SSH connections, some WSL connections, and remote agent hosts from the Agents window. As a result, you should see faster connections and lower resource usage.

Deprecated features and settings

New deprecations in this release

None

Upcoming deprecations

Thank you

Issue tracking

Contributions to our issue tracking:

Pull requests

Contributions to vscode:


We really appreciate people trying our new features as soon as they are ready, so check back here often and learn what's new.

If you'd like to read release notes for previous VS Code versions, go to Updates on code.visualstudio.com.