Skip to content

CTRL + C in terminal doesn't work for Bunjs process on Windows #45570

@astrox11

Description

@astrox11

Reproduction steps

  1. Install Bun on a Windows machine.

  2. Open Zed's built in terminal, CTRL + Shift + `

  3. Create a simple script, for example:

    // index.js
    setInterval(() => {
      console.log("running...");
    }, 1000);
  4. Run the script using:

    bun run index.ts
    
  5. While the process is running, press CTRL + C in the terminal.

Current vs. Expected behavior

On Windows, pressing CTRL + C in the terminal does not stop a running Bun process. The process continues running and ignores the interrupt signal, requiring the terminal to be closed or the process to be killed manually.

Zed version and system specs

null

Attach Zed log file

Zed.log

null```log


</details>


### Relevant Zed settings

<details><summary>settings.json</summary>

<!-- Paste your settings inside the code block. -->
```json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:controls/keybindsKeyboard shortcuts, mapping, binding, keymaps, etcarea:integrations/terminalFeedback for terminal integration, shell commands, etcarea:languages/javascriptJavaScript programming language supportfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P2Average run-of-the-mill bugs

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions