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

Voyager7 as Windows' default terminal application

Status: proposed. Date: 2026-11-29. Owner approved: no.

Windows 11 and Windows 10 22H2 can open console programs started from Run, Explorer or the Start menu in a terminal other than the console window (Windows Terminal: Settings > Startup > "Default terminal application"). Voyager7 offers itself there the way an unpackaged program can: a per-user choice in its Settings window, served by voyager7.exe -Embedding.

How Windows hands a console over

Sources: microsoft/terminal at 9a8127f (src/server/IoDispatchers.cpp attemptHandoff, src/host/srvinit.cpp ConsoleEstablishHandoff, src/propslib/DelegationConfig.cpp, src/host/proxy/*.idl).

  1. A console program starts without a console. Windows starts the inbox conhost.exe. It reads two per-user strings, HKCU\Console\%%Startup\DelegationConsole and DelegationTerminal, both COM class ids. A missing or zero value on either side means "Let Windows decide"; {B23D10C0-E52E-411E-9D5B-C09FDF709C7D} on either side means "Windows Console Host"; anything else is a custom pair.
  2. Only a first, interactive, visible start is handed over: not an AttachConsole, not a pseudoconsole (so nothing inside a terminal), not a service session, not CREATE_NO_WINDOW, not a hidden or minimized start.
  3. With a custom pair, conhost creates DelegationConsole out of process and calls IConsoleHandoff::EstablishHandoff with its console-driver server handle, the pending connect message and a signal pipe. The console host (OpenConsole, OpenConsole.exe -Embedding) now serves the session. Inbox conhost stays only to wait for the program to exit (process id continuity) and to relay signals.
  4. OpenConsole reads the same pair and creates DelegationTerminal, calling ITerminalHandoff3::EstablishPtyHandoff(&in, &out, signal, reference, server, client, startupInfo). The terminal makes the two pipes and returns OpenConsole's ends; OpenConsole runs as a headless pseudoconsole on them (--headless --signal). startupInfo carries the title, icon and show command conhost read from the shortcut.
  5. Any failure (class not registered, interface not marshalable, an error result) leaves the console in conhost's own window.

ITerminalHandoff3 dates from microsoft/terminal#17575 (July 2024, Windows Terminal 1.22); the older ITerminalHandoff/ITerminalHandoff2 passed the pipes in. All three interfaces pass handles with MIDL system_handle marshaling, so both processes need the proxy/stub DLL that Windows Terminal ships as OpenConsoleProxy.dll (class {3171DE52-6EFA-4AEF-8A9F-D02BD67E7A4F}).

"Let Windows decide"

That entry writes zeros (Windows Terminal's dropdown writes {00000000-…} to both values; the owner's Win10 VM had exactly that).

  • Windows 11 (22H2 and later): inbox conhost replaces a default pair with Windows Terminal's ({2EACA947-7F5F-4CFA-BA87-8F7FBEEFBE69}, {E12CFF52-A866-4C77-9A90-F570A7AA2C6B}) and checks that the console class also implements IDefaultTerminalMarker (microsoft/terminal#13160, 2022). So Windows picks Windows Terminal when a version that opts in is installed (it is inbox on Windows 11 22H2), and conhost otherwise. The choice is hard-coded to Windows Terminal's class ids: no other terminal can become "Windows' choice".
  • Windows 10 22H2 (verified on 19045.6456): inbox conhost has the delegation code (it reads both values and contains IID_IConsoleHandoff) but none of Windows Terminal's class ids and no IDefaultTerminalMarker. "Let Windows decide" is the console window. Only an explicit pair hands over: with Windows Terminal's pair, cmd.exe started from the user session opened in Windows Terminal (OpenConsole.exe -Embedding and WindowsTerminal.exe -Embedding from its package).

Which Windows can delegate

Windows Terminal offers the setting on build 22000 and later, or where HKLM\SOFTWARE\Microsoft\SystemSettings\SettingId\SystemSettings_Developer_Mode_Setting_DefaultTerminalApp exists (Windows 10 22H2 servicing; present on the VM). Voyager7 uses the same test. Windows 7, 8.1 and older Windows 10 builds have no delegation; Voyager7 hides the option there.

The lists in Windows Terminal and Windows Settings

Both lists come from packaged app extensions: a package that declares com.microsoft.windows.console.host and com.microsoft.windows.terminal.host (each with a Clsid property) appears as one entry, console and terminal paired by package. Unpackaged Voyager7 cannot appear there.

Windows Terminal's Settings takes the default back. While Voyager7 is the default, Windows Terminal's list has no matching entry, so it shows "Let Windows decide" (DelegationConfig::s_GetAvailablePackages falls back to packages.at(0)), and every Save in its Settings writes the shown entry back (CascadiaSettingsSerialization.cpp _writeSettingsToDisk → DefaultTerminal::Current): the default silently stops being Voyager7, even when the user changed something unrelated. Voyager7 cannot prevent that. It reads the pair live each time its Settings window is activated or reloaded, shows the real default (a choice, another Windows Terminal channel, or Other ({…}, {…}) with the class ids), and when Voyager7 had been chosen there but the pair changed since, says "Another app changed the default terminal to …" and removes the per-user registrations the new pair no longer uses (Voyager7's class; the bundled OpenConsole and proxy unless the pair still names OpenConsole's class with no package serving it). Pick Voyager7 again to get it back.

Being listed would take an MSIX or a sparse package (package identity for an unpackaged exe) that declares both extensions, a com:ExeServer for voyager7.exe, the proxy/stub, and a console-host class of its own: the bundled OpenConsole serves only Windows Terminal's class id, which two packages cannot both declare, so the package would need an OpenConsole built from Microsoft's MIT sources with a Voyager7 class id. Packages must be signed (sparse packages too; unsigned only in developer mode). Not now: Voyager7 is unsigned for the alpha.

Decision

  • The pair is ({2EACA947-7F5F-4CFA-BA87-8F7FBEEFBE69} OpenConsole, {7939EF47-5E38-46C9-B384-0AC7BDFA629C} Voyager7). The bundled OpenConsole.exe (ADR 0012) is Microsoft's release build, which serves only that console class id, the one Windows Terminal ships.
  • Per-user registration under HKCU\Software\Classes, no administrator:
    • always CLSID\{7939EF47…}\LocalServer32 = "<dir>\voyager7.exe" (COM appends -Embedding);
    • when Windows Terminal's package does not serve the console class (HKLM\SOFTWARE\Classes\PackagedCom\ClassIndex\{2EACA947…} lists no package): CLSID\{2EACA947…}\LocalServer32 = "<dir>\OpenConsole.exe", CLSID\{3171DE52…}\InprocServer32 = <dir>\OpenConsoleProxy.dll (ThreadingModel=Both) and Interface\{IConsoleHandoff, ITerminalHandoff3, IDefaultTerminalMarker}\ProxyStubClsid32. These exist only while Voyager7 is the choice: choosing another entry in Voyager7 removes them (only the ones that point at Voyager7's directory).
  • Nothing is written until the user picks an entry. Before the first switch to Voyager7 the exact previous values (or their absence) are saved in HKCU\Software\Voyager7\DefaultTerminalPrevious.
  • Uninstall: if Voyager7 from this directory is still the default, the saved values are written back (or "Let Windows decide" when none were saved); another terminal's choice and another copy's registration are left alone. Then the classes registered from the directory are removed.
  • voyager7.exe -Embedding registers its class object first thing (multithreaded apartment, single use), takes the handoff, waits for the caller to release it, and then either forwards the console to a running instance of its class (the handles are duplicated into that process and named in an IPC +new-window --v7-handoff=… request) or opens it in its own first window. A console arriving while Voyager7 runs opens a new window, as a console program would.
  • The Backend is the ConPTY Backend in an adopted form (ConPty::adopt): same reader, ring and input encoding as the bundled provider (OpenConsole hosts it), with resize, clear and close sent as PTY_SIGNAL_* packets on the signal pipe (winconpty's protocol). The client process is reopened with PROCESS_TERMINATE, so closing its tab ends it as with any other tab.
  • OpenConsoleProxy.dll (38,712 bytes) ships in the ConPTY component. The ConPTY NuGet package has no proxy; cargo xtask sidecar takes it from Windows Terminal 1.25.2733.0's release archive (SHA-256 pinned), whose OpenConsole.exe is byte-identical to the NuGet one. MIT, Microsoft.
  • Settings: a "Default terminal" drop-down in the Settings command bar (Let Windows decide, Windows Console Host, Voyager7, Windows Terminal when installed, and the current entry if it is another terminal), applied on selection. It is not a configuration key: loading a config must never change a Windows setting. --diag-default-terminal=show|windows|conhost| voyager7|windows-terminal does the same for tests.
  • standalone-min can be the default where Windows Terminal is installed; elsewhere it needs OpenConsole.exe and OpenConsoleProxy.dll beside it, and Settings says so.

Consequences and risks

  • Measured on the Win10 VM (19045.6456, Windows Terminal 1.25.3131 installed): a per-user Interface\…\ProxyStubClsid32 takes precedence over the package's (our proxy was loaded into conhost and into Windows Terminal's OpenConsole), while activation of {2EACA947…} still went to the package's OpenConsole despite a per-user LocalServer32. Hence the console side is registered only when the package does not serve it.
  • Elevated consoles ("Run as administrator") do not use per-user COM servers and are expected to stay in conhost (not verified).
  • If the console side stays registered after the choice was changed outside Voyager7 (Windows Settings) on a Windows 11 without Windows Terminal, "Let Windows decide" would start the bundled OpenConsole for its marker check, which then fails to reach Windows Terminal and falls back to conhost: slower console starts until Voyager7's Settings is next opened (which removes it, see above) or Voyager7 is uninstalled.
  • With Windows Terminal installed its newer OpenConsole hosts Voyager7's consoles. The interfaces are append-only by design (the IDL's "LOAD BEARING" note) and the signal packets have not changed since 2018.
  • An all-users uninstall elevated by a different administrator account restores that account's values, not the user's.
  • Evidence: build/fixes/default-terminal/NOTES.md.