Skip to content

vscode: preflight version probe timeout leaves a .cmd probe's child running on Windows #1924

Open

Description

@amrmelsayed

Problem

runCodevVersion (apps/vscode/src/preflight/preflight-core.ts) kills a probe that outlives its budget with child.kill(). On Windows, a codev resolved to a .cmd that is not an npm shim runs as cmd.exe /c …. Killing the child ends cmd.exe, but whatever it started keeps running.

Seen while fixing #1922: with a slow.cmd fixture running ping -n 31 127.0.0.1, the timeout path reported timedOut: true, but PING.EXE kept running for its full 30s after the test finished. An npm-shimmed codev.cmd resolves to node <entry> directly and is not affected; a wrapper .cmd is.

Fix shape

Kill the probe's process tree on Windows (as killSessionTree / the Job Object helpers do in packages/codev), and drop the test's 5s-bounded workaround (preflight-version-timeout.test.ts, ping -n 6).

Activity

  1. added
    area/vscode
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/vscode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions