Skip to content

Commit 1500281

Browse files
committed
feat: 🧱 Enable terminals for additional vscode Remote Host Types
1 parent 915fc24 commit 1500281

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/tools/implementations/runTerminalCommand.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ import { isProcessBackgrounded, removeBackgroundedProcess } from "../../util/pro
77

88
const asyncExec = util.promisify(childProcess.exec);
99

10+
const ENABLED_FOR_REMOTES = ["","local","wsl","dev-container","devcontainer","ssh-remote","attached-container","codespaces","tunnel"];
11+
1012
export const runTerminalCommandImpl: ToolImpl = async (args, extras) => {
1113
// Default to waiting for completion if not specified
1214
const waitForCompletion = args.waitForCompletion !== false;
1315
const ideInfo = await extras.ide.getIdeInfo();
1416
const toolCallId = extras.toolCallId || "";
1517

16-
if (ideInfo.remoteName === "local" || ideInfo.remoteName === "") {
18+
if (ENABLED_FOR_REMOTES.includes(ideInfo.remoteName)) {
1719
// For streaming output
1820
if (extras.onPartialOutput) {
1921
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)