Bun process runs at 100% cpu after exiting cursor on ubuntu linux

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Just like the title says: A bun process runs at 100% cpu after exiting cursor ide on Ubuntu 26.04.1 LTS

Steps to Reproduce

I can’t do it consistently, but if you start cursor with multiple ide windows, let it run (even just idle) for at least a few minutes, then close the windows from the dock, a bun process will start and run at 100% cpu and does not end without being killed.

Expected Behavior

That no bun process will be started

Operating System

Linux

Version Information

Version: 3.25.6
VS Code Extension API: 1.128.0
Commit: f0df777c412b670d09e3eaf214967d779e67c080
Date: 2026-10-14T22:46:28.448Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.10.0
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Linux x64 7.0.0-38-generic

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. Most likely, this bun isn’t Cursor itself, but something that started inside the session: an MCP server, a dev server or terminal task, or an extension. When the windows are closed, for some reason it doesn’t exit and starts spinning idle.

To figure out exactly what process it is, next time it shows up, run these in a normal terminal and send the output:

  1. ps -eo pid,ppid,etime,pcpu,args --sort=-pcpu | head -5
  2. Use the bun process PID from step 1: tr '\0' ' ' < /proc/PID/cmdline; echo
  3. ls -l /proc/PID/exe /proc/PID/cwd

A couple more questions:

  • Are there any MCP servers in ~/.cursor/mcp.json or the project’s .cursor/mcp.json that start via bun or bunx?
  • Did you run anything with Bun in the built-in terminal during that session?

If you want to narrow it down yourself, disable all MCP servers in Cursor Settings > Tools & MCP, restart Cursor, open a few windows, wait a couple of minutes, then close them from the dock like usual. After that, run pgrep -a bun. If the process still appears, try quitting once with Ctrl+Q instead of closing from the dock, and let me know if anything changes.

For now, you can kill the process with kill PID or kill -9 PID if it doesn’t respond.

Let me know what the output shows.

Hi there,
Thanks for the reply!
I ran the second 2 commands and got the PID from top:

lrwxrwxrwx 1 rane rane 0 Oct 25 16:16 /proc/50483/cwd → /home/rane/.claude/plugins/cache/claude-plugins-official/telegram/0.0.6
lrwxrwxrwx 1 rane rane 0 Oct 25 13:25 /proc/50483/exe → /home/rane/.bun/bin/bun

So I guess it somehow installed my claude code telegram plugin. I do find it useful though - it sends me a telegram once the agent has finished working haha

Hey, thanks, this is exactly what we needed. Based on the cwd and exe, this is the Telegram plugin MCP server from Claude Code. Cursor picks up Claude Code plugins, so it also starts that MCP server through bun. When you close the windows, that process doesn’t exit, loses stdin, and starts spinning at 100% CPU.

You didn’t manually install anything for this plugin in Cursor. It was picked up from ~/.claude. This shouldn’t happen. MCP processes should exit together with Cursor, and it isn’t related to your setup. I’ve passed this on to the team and I’ll reply here when there’s an update.

For now, you can do this:

  • If you only need the plugin in Claude Code, disable its MCP server in Cursor Settings > Tools & MCP in the list of plugin MCP servers. It will keep working in Claude Code like before.
  • If you want to keep it enabled, you can kill the process after quitting Cursor with kill PID or pkill -f telegram.

If you get a minute next time this happens, please also send the output of tr '\0' ' ' < /proc/PID/cmdline; echo and ps -o ppid=,args= -p PID. That will help confirm exactly which process is starting it.