Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Optional Microsoft ConPTY sidecar

Status: accepted. Date: 2026-11-07. Owner approved: yes.

Ship unmodified x64 Microsoft.Windows.Console.ConPTY 1.25.260930003 as an optional sidecar, recommended by the installer. The standalone-min distribution remains one executable. The sidecar consists of conpty.dll (119,608 bytes) and OpenConsole.exe (1,089,376 bytes), plus Microsoft's MIT license notice. cargo xtask sidecar verifies the pinned NuGet archive SHA-256 and each binary before writing build/sidecar/conpty/{conpty.dll,OpenConsole.exe,LICENSE.txt}. This is the packaging input directory; install both binaries beside voyager7.exe. The notice is in licenses/ConPTY-MIT.txt. No Microsoft source is copied.

W27 measured inbox ConPTY at 0/10 strict numbered resize storms, retaining 196–215/240 rows. The newer package passed 20/20 (10 flags-zero, 10 flags-two), retaining all 240 rows once and in order. Captured repaint bytes demonstrate that inbox absolute-position repaint overwrites active rows without scrolling them into history. Reordering/draining/reflow changes did not fix this. See docs/research/tui-parity-2026-11-07.md for the exact loss intervals and qualifications. This evidence supports shipping the sidecar; it does not certify actual Claude Code or Codex sessions.

The Voyager7 extension v7-conpty = auto|bundled|system defaults to auto, following ADR 0009's v7- namespace and warning/reset/include/CLI rules. Use --v7-conpty=system on the CLI; unprefixed conpty is unknown. auto and bundled try the optional sidecar and permit system fallback. system always uses kernel32. Empty resets to auto. +explain-config v7-conpty documents this policy.

On Windows build 17763 or later, discover both siblings using the executable's absolute filename. Load the DLL with full-path LoadLibraryExW and dependency search restricted to its directory and System32. Resolve its prefixed exports at runtime and retain the module until the console and worker threads close. Resolve RtlGetVersion dynamically to avoid manifest-dependent version reporting. Missing files, an unsupported OS, missing exports, DLL load failure or any sidecar startup failure all select the system provider. Diagnostics report the selected provider and the fallback error. Windows 7 retains its unavailable-Backend path; no Windows 10 functions become static imports. Production creation flags stay zero: flags 0/2/4/6 produced no distinct benefit in W27's controlled capture.

Newer ConPTY requests DEC private mode 9001. The pinned libghostty-vt public mode query exists, but its mode inventory has no 9001 entry. Voyager7 therefore observes DECSET/DECRST from the output stream without a vendor patch, across write chunk boundaries, ignoring control strings and recognizing reset/cancellation. While active, keyboard input uses Microsoft's public CSI Vk;Sc;Uc;Kd;Cs;Rc _ protocol. Records retain down/up, scan code, virtual key, UTF-16 units, repeat count and console modifier flags, including AltGr. Dead-key preedit carries no committed character. Ctrl+C uses VK_C/ETX; Ctrl+Break retains VK_CANCEL so console processed input policy remains conhost's responsibility. Mode-off input keeps the existing Ghostty encoder. Clipboard shortcuts retain Voyager7 policy.

Protocol reference: Microsoft's specification. The feature conpty-experiment now enables only explicit-path diagnostic overrides and output tracing; the shipping loader and mode handling have one unconditional implementation. Experimental resize policies remain diagnostic only.

cargo xtask vm-tui checks shared invariants on Win7, exact native console input on Win10, and ten strict live storms for each provider. Bundled losses fail the gate; system losses are reported as a known inbox limit. Native mouse receipt is reported independently rather than inferred from keyboard record support.

Inbox conhost crash on a height shrink during a cooked read (2026-11-27)

Windows 10 inbox conhost (10.0.19041, on 22H2 19045.6456) fail-fasts with STATUS_STACK_BUFFER_OVERRUN (0xC0000409, "conhost.exe - System Error") when ResizePseudoConsole shrinks the height below the prompt row while a cooked read holds typed text, e.g. cmd at its prompt with echo hi typed but not entered. The console session dies with it, so cmd exits and the pane closes. A direct kernel32 harness (no Voyager7 code) reproduced it in 14 of 15 such resizes. It needs all three conditions: pending text (an idle prompt survives), a height change (width-only shrinks and growth survive), and a prompt row at or below the new height (prompt row 3 or 12 with 19 rows survives). Creation flags 2, 4 and 6 did not prevent it. The bundled OpenConsole 1.25 survived the same sequence 3/3. This is microsoft/terminal#1856, fixed by microsoft/terminal#5620 (April 2020, after the 19041 inbox conhost was frozen). That fix hides the cooked read's command line around the resize, which only the host can do.

No resize order, size clamp or flag avoids it from the client side. Keeping the pseudoconsole taller than the grid would misplace conhost's absolute repaints. The installer and zip ship the sidecar and are not affected; standalone-min on Windows 10 is, as is v7-conpty = system. Evidence: build/fixes/backend-bugs/NOTES.md.