VS Code agent cannot capture terminal output in WSL workspace
维护者通常 8 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript, vscode
调研方向
Start by tracing the VS Code extension’s remote terminal execution path and compare it with local workspace handling, including the ide.runCommand path mentioned in #9679. Reproduce the issue with pwd in a WSL workspace, then verify that stdout, stderr, and exit status are returned without inserting commands into unfinished user input.
由索引模型根据 Issue 内容生成。
描述
Environment
Windows with WSL2 (Ubuntu)
VS Code opened from a WSL directory using code .
Continue VS Code extension installed under both Local and WSL: Ubuntu
Continue version: 2.0.0
VS Code version: 1.140.0
Problem
When Continue’s agent runs a terminal command in the WSL workspace, the command text appears in the VS Code Ubuntu terminal. However, Continue receives neither the command’s output nor its exit status. The tool instead returns: "Command executed in remote terminal. Output capture is not yet available for remote environments"
This happens even with a harmless command such as pwd. The same command works when I run it myself in the Ubuntu terminal. In a local Windows workspace, Continue runs commands with output visible to the agent, so the failure appears specific to the remote-workspace execution path.
Steps to reproduce
On Windows, open a WSL2 Ubuntu workspace in VS Code by running code . from an Ubuntu directory.
Ask Continue in Agent mode to run pwd.
Observe that the command text is sent to an interactive Ubuntu terminal.
Observe that Continue receives the “Output capture is not yet available” message instead of the path or an exit status.
Expected behavior
Continue should execute the command in the WSL environment and return stdout, stderr, and exit status to the agent, as it does for local workspaces. It should not insert agent commands into a terminal containing unfinished user input.
Actual behavior and impact
The agent cannot determine whether a command ran or succeeded. This prevents it from reliably running tests, diagnosing build failures, or safely performing actions that require verification.
Related issues and PRs
#9731 — Terminal output not captured when Windows VS Code connects to WSL: Appears to describe this same VS Code extension behavior. It is closed, but the behavior remains reproducible.
#9679 — Use ide.runCommand when Windows host connects to WSL: Fixed a powershell.exe ENOENT error by routing commands through the VS Code terminal. That allows command text to reach WSL but does not provide output capture.
#9810 — Detect WSL and spawn appropriate shell: Changes the standalone CLI implementation, not the VS Code extension’s remote terminal output path. Its closure of #9731 does not appear to resolve this reproduction.
- 主要语言
- TypeScript
- 星标
- 36.5k
- 派生
- 5.6k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
continuedev/continue 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
continuedev/continue#13486 ·
维护者通常 8 天内回复
-
Chat panel overflows horizontally when VS Code zoom level is increased (Cmd/Ctrl + +)可能已有人在做 @tang-ontheway 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 80/100
continuedev/continue#13483 ·
维护者通常 8 天内回复
-
Docs: show tool selection for a shared remote MCP endpoint可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
continuedev/continue#13464 · 1 条评论 ·
维护者通常 8 天内回复
-
Inline code becomes unreadable in VS Code high-contrast themes可能已有人在做 @aminesayagh 于 21 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 63/100
continuedev/continue#13424 ·
维护者通常 8 天内回复
-
create_new_file writes a JSON file on one line when the model sends its contents as a JSON value可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
continuedev/continue#13363 ·
维护者通常 8 天内回复
查看 continuedev/continue 的全部 Issue
相似的 Issue
-
area-templates triage:bot-seen triage:needs-human
难度 2/5 1-3 小时 新手友好度 75/100
microsoft/aspire#22356 · 1 条评论 ·
维护者通常 1 天内回复
-
Archiving an agent that is not loaded keeps its old updatedAt可能已有人在做 @luoph 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
content triage
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
contributor: external needs review severity: low
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
Enhancement
难度 2/5 1-3 小时 新手友好度 76/100
JSPrismarine/JSPrismarine#3214 ·
维护者通常 1 天内回复