Bun command not found with Cursor Background Agents v1.4

Describe the Bug

Using latest Cursor v1.4 and now I try to run my background agent and it errors out with this error:

/bin/bash: line 1: bun: command not found
/bin/bash: line 1: bun: command not found
[Exit] Failed (code: 127)
Error: Environment failed to start
Details:
Failed to execute install command (system: false, user: None): Command failed with exit code 127: stderr: /bin/bash: line 1: bun: command not found

Steps to Reproduce

Create a empty repo with bun and then try to run a background agent in it.

Expected Behavior

It should be able to install bun dependencies

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.2 (Universal)
VSCode Version: 1.99.3
Commit: 07aa3b4519da4feab4761c58da3eeedd253a1670
Date: 2025-08-06T19:23:39.081Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

hi @seawatts and thank you for the report.

You can use Background Agent setup / installer scripts to install bun.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.