Moumouls
(Antoine Cormouls)
September 17, 2025, 2:42pm
1
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
Moumouls
(Antoine Cormouls)
September 17, 2025, 2:43pm
2
Moumouls
(Antoine Cormouls)
September 17, 2025, 2:47pm
3
It can break many electron app i guess
Terry_Yin
(Terry Yin)
September 22, 2025, 7:26am
4
unset ELECTRON_RUN_AS_NODE fixes the problem. But I guess this is a bug for Cursor.
1 Like
Moumouls
(Antoine Cormouls)
September 22, 2025, 8:23am
5
Yes unset works bug, cursor should not inject this kind of var
1 Like
Moumouls
(Antoine Cormouls)
September 22, 2025, 2:31pm
6
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
Moumouls
(Antoine Cormouls)
September 22, 2025, 2:32pm
7
@condor @deanrie opened since one week now and it’s a major regression
@ravirahman
ravirahman
(Ravi Rahman)
September 22, 2025, 7:34pm
8
Hi @Moumouls , thank you for raising this issue. We are taking a look at what’s happening here.
system
(system)
Closed
October 14, 2025, 7:34pm
9
This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.