Merge pull request #5813 from chezsmithy/feat-terminals-on-more-hosts

feat: 🧱 Enable terminals for additional vscode Remote Host Types
This commit is contained in:
Tomasz Stefaniak 2025-06-04 14:54:54 -07:00 • committed by GitHub
commit d51e5e159a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,13 +10,15 @@ import {
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) => {