Skip to content

Pressing Ctrl+C after vp run dev, pnpm run dev, or npm run dev leaves the terminal in a broken state on Windows #1176

@Curtion

Description

@Curtion

Describe the bug

  • On Windows, after starting the dev server and stopping it with Ctrl+C, the terminal is left in a broken or unusable state.

  • Common symptoms include:

    • terminal input becomes sluggish or freezes
    • Backspace behaves incorrectly and prints ^H
    • Ctrl+C is echoed as ^C
  • This issue is reproducible with vp run dev, pnpm run dev, and npm run dev.

  • The issue does not reproduce with:

    • bun run dev
    • .\node_modules\.bin\vite.CMD
    • .\node_modules\.bin\vite.ps1
    • C:\Users\Curtion\Desktop\node-v24.14.1-win-x64\npm.cmd run dev(Native Node.js)
    • C:\Users\Curtion\Desktop\node-v24.14.1-win-x64\npm.ps1 run dev(Native Node.js)
PixPin_2026-03-28_12-59-32.mp4

Reproduction

https://github.com/Curtion/report-vite-plus-1

Steps to reproduce

  • Open a terminal on Windows.
  • Go to the project root directory.
  • Run one of the following commands:
    • vp run dev
    • pnpm run dev
    • npm run dev
  • Wait for the dev server to start.
  • Press Ctrl+C once to stop the process.
  • Observe that the terminal enters an abnormal state:
    • input becomes slow or unresponsive
    • Backspace prints ^H
    • Ctrl+C prints ^C

System Info

@Curtion ➜ report-vite-plus-1 git(main) vp env current
VITE+ - The Unified Toolchain for the Web

Environment:
  Version  24.14.1
  Source   lts

Tool Paths:
  node  C:\Users\Curtion\.vite-plus\js_runtime\node\24.14.1\node.exe
  npm   C:\Users\Curtion\.vite-plus\js_runtime\node\24.14.1\npm.cmd
  npx   C:\Users\Curtion\.vite-plus\js_runtime\node\24.14.1\npx.cmd
@Curtion ➜ report-vite-plus-1 git(main) vp --version  
VITE+ - The Unified Toolchain for the Web

vp v0.1.14

Local vite-plus:
  vite-plus  Not found

Tools:
  vite             Not found
  rolldown         Not found
  vitest           Not found
  oxfmt            Not found
  oxlint           Not found
  oxlint-tsgolint  Not found
  tsdown           Not found

Environment:
  Package manager  pnpm v10.28.0
  Node.js          v24.14.1
@Curtion ➜ report-vite-plus-1 git(main)

Used Package Manager

pnpm

Logs

Validations

Metadata

Metadata

Assignees

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions