diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-23 21:43:23 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-23 21:43:23 +0300 |
| commit | a66f4c64e9d1591f042a94d6f3bef3b4298a4d1c (patch) | |
| tree | 747de08b6ada4300afb4124da9feff0cc66b96a7 /vendor/portable-pty.patches.md | |
| parent | 5981ba426e8ed8f6785195a03cc0d8a190173e61 (diff) | |
fix: force system conpty on windows
refs #761
Diffstat (limited to 'vendor/portable-pty.patches.md')
| -rw-r--r-- | vendor/portable-pty.patches.md | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/vendor/portable-pty.patches.md b/vendor/portable-pty.patches.md new file mode 100644 index 00000000..61645310 --- /dev/null +++ b/vendor/portable-pty.patches.md @@ -0,0 +1,41 @@ +# portable-pty local patches + +This file tracks intentional local changes applied on top of the vendored +`portable-pty` source. Remove a patch only when the upstream crate contains an +equivalent fix or exposes an option that lets Herdr keep the same behavior. + +## 0001 force system ConPTY + +status: active + +patch: `vendor/patches/portable-pty/0001-force-system-conpty.patch` + +herdr issue: https://github.com/ogulcancelik/herdr/issues/761 + +upstream discussion: none found + +upstream pr: none + +vendored base: `portable-pty 0.9.0` + +local files: + +- `vendor/portable-pty/src/win/psuedocon.rs` + +reason: `portable-pty` intentionally probes a bare `conpty.dll` after verifying +that `kernel32.dll` exports the ConPTY API. That is useful for WezTerm's bundled +`OpenConsole.exe` and `conpty.dll` pair, but Herdr does not ship that pair and +must not load another application's `conpty.dll` from `PATH`. + +remove when: upstream `portable-pty` no longer loads bare `conpty.dll` from the +DLL search path, upstream exposes a way for consumers to force system ConPTY, or +Herdr replaces the Windows PTY backend. + +verification: + +```sh +python3 -m unittest scripts.test_vendor_portable_pty +``` + +On Windows, also verify that pane creation succeeds when `PATH` contains a +directory with `conpty.dll`. |
