Skip to content

Windows Terminal startup delay when launched via CreateProcess #19859

@filipurh10

Description

@filipurh10

Windows Terminal version

1.23.20211.0

Windows build number

10.0.26200.7634

Other Software

Visual Studio 2026 18.2.0

Steps to reproduce

  • Open Visual Studio and create a new MFC App with the default settings
  • Change the implementation of the OnAppAbout() function to
STARTUPINFOA si;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
  
PROCESS_INFORMATION pi;
ZeroMemory(&pi, sizeof(pi));

char CmdLine[] = "cmd.exe";
  
CreateProcessA(NULL, CmdLine, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
WaitForSingleObject(pi.hProcess, INFINITE);

CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
  • Build and run the app
  • Click Help > About MFCApplication...
  • Observe a delay of a few seconds before the terminal appears
  • Change Settings > System > Advanced > Terminal setting to Windows Console Host
  • Click Help > About MFCApplication....
  • Observe that the terminal appears almost instantly

Expected Behavior

When launching the new Windows Terminal, the window should open quickly, similar to the legacy one.

Actual Behavior

When launching the new Windows Terminal, there is a noticeable delay before the window appears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions