vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Regression in 1.148: Claude and Codex harnesses unavailable in multi-root workspaces with any virtual folder

Open GNeras opened this issue 1 week ago • 1 comments

Does this issue occur when all extensions are disabled?: N/A (the scenario requires an extension to provide virtual filesystem folders)

Disclosure: I analyzed this issue with the help of an AI coding agent (Claude Code), using VS Code's logs and the shipped 1.148.0 bundle.

Environment

  • VS Code Version: 1.148.0 (661626d0e72f97806550790a98fb87116c9db825), .deb, x64
  • OS Version: Ubuntu 25.10, Linux 6.17.0-41-generic x86_64
  • Last version where Claude and Codex were available: 1.147.0
  • Agents: Claude and Codex in the local agent host

Summary

First of all, thank you for looking into #349020 so quickly. I really appreciate it.

#349252 resolved #349020 by hiding the Claude and Codex harnesses when any workspace folder is virtual. For us this has a much larger impact than the original bug: in 1.147 Claude and Codex worked well, apart from the minor glitches described in #349020. In 1.148 we can't use them at all in our main workspace. Our team uses these harnesses every day, so this release has effectively broken the way we work.

Our setup

We develop for SAP systems. Our workspace has one local folder, where the agents work, plus one virtual folder per SAP system. The virtual folders come from a FileSystemProvider extension that uses the abap: scheme:

{
  "folders": [
    { "path": "abap-work" },
    { "name": "SYSTEM_A", "uri": "abap:/repotree-v1/SYSTEM_A" },
    { "name": "SYSTEM_B", "uri": "abap:/repotree-v1/SYSTEM_B" }
  ]
}

The agents never needed the virtual folders as working directories. They work in abap-work and reach the SAP systems through MCP servers. We keep the virtual folders so we can browse and edit the systems in the same window.

Steps to reproduce

  1. Open a multi-root workspace like the one above: a local folder first, one or more virtual folders after it.
  2. Open the harness picker in the chat view.

Expected

Claude and Codex are offered, as they were in 1.147, and use only the local folder(s) as working directories.

Actual

Only Copilot is offered. If I remove every virtual folder, Claude and Codex come back. The only workaround is to split our work across two windows: one for the agents and one to work with the SAP systems.

Why

In #349252:

  • The agent host registers the agent-host-claude and agent-host-codex contributions with when: !workspaceHasVirtualContent.
  • The harness picker also hides every agent host harness except Copilot when workspace.folders.some(isVirtualResource).

So a single virtual folder is enough to disable both harnesses, even when the workspace has local folders the agent can use.

Suggestion

Would it be possible to restore the harnesses in mixed workspaces and fix the root cause described in #349020 instead? In short: filter out the folders a provider can't use before computing the working directory set, in the provisional session service and in the working directory synchronizer, as the send path already does. In our workspace, Claude and Codex would then get only abap-work.

Hiding the harnesses still makes sense when every folder is virtual, which is what the existing isVirtualWorkspace check covers. It seems too strict when at least one folder is local.

If a full fix needs more time, a setting to opt back into the 1.147 behaviour would already unblock us.

Thanks again, and I'm happy to test a build or provide more details.

GNeras avatar Nov 25 '26 11:11 GNeras

Encountered this issue today after the update. I had a remote SSH workspace folder. Removing that folder from my workspace brought back the Claude and Codex options in the harness.

Using the SSH FS extension (kelvin.vscode-sshfs). Adding an SSH workspace folder immediately removes the Claude/Codex options in the VSCode chat harness. Removing the folder returns the Claude/Codex options.

Greg-T8 avatar Nov 25 '26 21:11 Greg-T8