Skip to content

PowerShell 7.6.x crashes with "Unknown Hard Error" on launch (0xE9 / ERROR_NO_DATA via ConPTY) #11398

Description

@codingseb

Pre-submit Checks

Describe the bug

When Warp launches PowerShell 7.6.x (pwsh.exe) as its session shell on Windows 11,
pwsh fails fast immediately at startup and Windows displays an "Unknown Hard Error"
dialog (pwsh.exe — Avertissement système). The tab closes before any prompt is rendered.

The same pwsh 7.6.1 binary launched outside Warp (Win+R → pwsh, or from Windows Terminal)
works fine. Downgrading to PowerShell 7.5.x also makes the issue disappear in Warp.

Root cause appears to be the bundled ConPTY pair (OpenConsole.exe / conhost.exe) in Warp
being older than the version pwsh 7.6 / .NET 10 expects when calling
GetConsoleScreenBufferInfo. The exact same symptom was tracked and fixed in WezTerm by
bumping the bundled ConPTY pair to 1.24.260402001:
wezterm/wezterm#7774

To reproduce

  1. Install PowerShell 7.6.1: winget install Microsoft.PowerShell --force
  2. In %LOCALAPPDATA%\warp\Warp\config\settings.toml set:
    [session.new_session_shell_override]
    executable = 'C:\Program Files\PowerShell\7\pwsh.exe'
  3. Open a new Warp tab/window → "Unknown Hard Error" dialog appears, pwsh exits.

Windows Event Viewer → Application log captures:
Application: pwsh.exe
CoreCLR Version: 10.0.626.17701
.NET Version: 10.0.6
System.Environment.FailFast
Message: The Win32 internal error "No process is on the other end of the pipe." 0xE9
occurred while getting console output buffer information.

Expected behavior

pwsh 7.6.x should launch normally inside Warp, as it does in Windows Terminal,
conhost, and in WezTerm after the ConPTY bump (wezterm#7774).

Screenshots, videos, and logs

Image

warp-logs.zip

Operating system (OS)

Windows

Operating system and version

Windows 11 Pro 22631 (10.0.22631)

Shell Version

PowerShell 7.6.1 (C:\Program Files\PowerShell\7\pwsh.exe)

Current Warp version

v0.2026.05.18.05.32.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

Runtime: .NET 10.0.6 / CoreCLR 10.0.626.17701

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Metadata

Metadata

Assignees

Labels

area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.bugSomething isn't working.os:windowsWindows-specific behavior, regressions, or requests.repro:highThe report includes enough evidence that the issue appears highly reproducible.triage-reviewedtriagedIssue has received an initial automated triage pass.warp:auto-triage-reviewwarp:product-qualitywarp:reserved-internalThis issue is being worked on internally. We're not accepting external PRs at this time.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions