Skip to content

VS Code Integrated Terminal Fails to Launch (ConPTY / winpty error in corporate VM) #311849

@jugal204

Description

@jugal204

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:
Image

Issue Description:

The integrated terminal in VS Code fails to launch consistently.
An error is shown indicating issues related to terminal backend initialization (ConPTY / winpty removal).

This prevents using the integrated terminal for any development workflow (Git, scripts, builds, etc.).

Error Message:

Winpty has been removed and conpty could not be launched.
The terminal process failed to launch.

Image

Steps to Reproduce:

Open VS Code
Attempt to open terminal (Terminal → New Terminal or Ctrl + `)
Terminal fails to launch with error

Expected Behavior:

VS Code should open an integrated terminal (Command Prompt / PowerShell) without errors.

Actual Behavior:

Terminal fails to initialize due to backend error related to ConPTY / terminal host.

Troubleshooting Attempted (all unsuccessful):

Updated VS Code to latest version
Restarted VS Code and system
Modified user settings:
Enabled "terminal.integrated.windowsUseConptyDll": true
Set default profile to Command Prompt and PowerShell
Defined explicit terminal paths in terminal.integrated.profiles.windows
Disabled GPU acceleration
Tried launching terminal with specific profiles via Command Palette
Cleared VS Code workspace storage/cache
Verified Git and system shells (cmd / PowerShell) work outside VS Code
Attempted disabling ConPTY fallback settings
Tried both Command Prompt and PowerShell as terminal
Reopened workspace and verified correct project directory

Additional Context:

Environment is a corporate-managed VM, likely with restricted system policies
Certain system features (e.g., winver, terminal capabilities) appear restricted by administrator
External terminals (cmd / PowerShell) work fine outside VS Code
Issue appears isolated to VS Code integrated terminal only

Impact:

Unable to use integrated terminal, affecting:

Git workflows
Build/run scripts
Developer productivity

Request:

Please investigate whether this issue is related to:

ConPTY support limitations in restricted enterprise environments
VS Code terminal compatibility with policy-controlled Windows VMs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions