From 1500281bb547f7308aa7316f6783072e4f81fbc1 Mon Sep 17 00:00:00 2001 From: Shawn Smith Date: Fri, 23 May 2025 06:35:53 +0000 Subject: [PATCH] feat: :bricks: Enable terminals for additional vscode Remote Host Types --- core/tools/implementations/runTerminalCommand.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/tools/implementations/runTerminalCommand.ts b/core/tools/implementations/runTerminalCommand.ts index cfe7ced9ef..da69e3afe3 100644 --- a/core/tools/implementations/runTerminalCommand.ts +++ b/core/tools/implementations/runTerminalCommand.ts @@ -7,13 +7,15 @@ import { isProcessBackgrounded, removeBackgroundedProcess } from "../../util/pro const asyncExec = util.promisify(childProcess.exec); +const ENABLED_FOR_REMOTES = ["","local","wsl","dev-container","devcontainer","ssh-remote","attached-container","codespaces","tunnel"]; + export const runTerminalCommandImpl: ToolImpl = async (args, extras) => { // Default to waiting for completion if not specified const waitForCompletion = args.waitForCompletion !== false; const ideInfo = await extras.ide.getIdeInfo(); const toolCallId = extras.toolCallId || ""; - if (ideInfo.remoteName === "local" || ideInfo.remoteName === "") { + if (ENABLED_FOR_REMOTES.includes(ideInfo.remoteName)) { // For streaming output if (extras.onPartialOutput) { return new Promise((resolve, reject) => {