MAJOR ISSUE: Agent terminal set "ELECTRON_RUN_AS_NODE"

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Command spawn by the agent run in a terminal with ELECTRON_RUN_AS_NODE=1,
this command can break many dependencies like running cypress tests. This var should not be set.

Steps to Reproduce

Ask cursor to run cypress tests

Expected Behavior

ELECTRON_RUN_AS_NODE should be unset in agent terminals

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.26 (Universal)
VSCode Version: 1.99.3
Commit: 6af2d906e8ca91654dd7c4224a73ef17900ad730
Date: 2025-09-16T17:12:31.697Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Yes - Cursor is unusable

1 Like

source: cypress does not start, complaining: bad option: --no-sandbox · Issue #17989 · cypress-io/cypress · GitHub

It can break many electron app i guess

unset ELECTRON_RUN_AS_NODE fixes the problem. But I guess this is a bug for Cursor.

1 Like

Yes unset works bug, cursor should not inject this kind of var

1 Like

Bigger problem here NODE_ENV is also manipulated by cursor shell with “production” to true, so now our agent cant run tests properly by default

@condor @deanrie opened since one week now and it’s a major regression

@ravirahman

Hi @Moumouls, thank you for raising this issue. We are taking a look at what’s happening here.

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