Skip to content

CLI: runTerminalCommand has no remote/WSL detection #9736

Closed

Description

@shanevcantwell

Description

The CLI's runTerminalCommand implementation has no remote environment detection. It always spawns shells directly based on process.platform.

File

extensions/cli/src/tools/runTerminalCommand.ts

Impact

If CLI is invoked from a context where platform detection doesn't match the execution environment (e.g., Windows process targeting WSL), shell spawning will fail.

Note

This may be lower priority since CLI typically runs in the same environment where commands execute. However, for consistency with the VS Code fix (PR #9679), similar detection could be added.

Related

Activity

  1. sestinj commented on Jan 21, 2026

    @sestinj
    Contributor

    Related issues:

  2. added
    area:tools
    kind:enhancement
    os:windows
    on Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:toolskind:enhancementos:windows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions