Agent's terminal commands fail with dump_bash_state not found

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When Cursor’s Agent runs terminal (agent’s terminal, not regular one), several problem occur

  1. the current directory is not the project working dir, but the OS root (i.e. ‘/’)

  2. most of commands fail with “–: dump_bash_state: command not found”. Many commands print also other errors:
    $ ps aux | grep -E “(npm|node|next)” | grep -v grep
    –: eval: line 1: unexpected EOF while looking for matching `)’
    –: eval: line 2: syntax error: unexpected end of file
    –: dump_bash_state: command not found

  3. For some reason the terminal became read-only with this version: “Agent terminals are read-only”

If I run them in a regular cursor’s terminal session or in a separate terminal - they run fine. It happens only in the agent’s terminal session

Steps to Reproduce

ask agent in the chat to run pwd command:
USER: “run pwd command”
AGENT:
I’ll run the pwd command again to show the current working directory.
$ pwd
–: eval: line 1: unexpected EOF while looking for matching `)’
–: eval: line 2: syntax error: unexpected end of file
–: dump_bash_state: command not found

It looks like there was an issue with the shell. Let me try running the pwd command again:
$ pwd
/
–: dump_bash_state: command not found

So, it ran the same command twice, and the second time it executed (also printed the dump_bash_state error

Expected Behavior

  1. current dir - project root, not OS root
  2. no failures, no errors

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.6.23
VSCode Version: 1.99.3
Commit: 9b5f3f4f2368631e3455d37672ca61b6dce85430
Date: 2025-09-15T21:49:07.231Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin x64 21.6.0

For AI issues: which model did you use?

Auto, claude-4-sonet

Does this stop you from using Cursor

Yes - Cursor is unusable

7 Likes

Hi, thanks for reporting this issue! We’re looking into it. Would you mind sharing whether this is still occurring on the latest release? Also, are you seeing this when working in local workspaces on your Mac, or is this happening in a remote (ssh or container) workspace?

Hi, Thanks for looking into it. I have 1.6.23 and when I press check for update it says “There are currently no updates available.” - so I’m assuming it’s the latest release?
It’s in local workspace on my Mac, it’s neither remote nor container.

Ok, the update just became available and I installed it (1.6.26) and can confirm, that the issue still persist in the latest release

$ pwd
--: eval: line 1: unexpected EOF while looking for matching `)'
--: eval: line 2: syntax error: unexpected end of file
--: dump_bash_state: command not found

Version: 1.6.26
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 x64 21.6.0

It’s also happening in the Remote SSH workspaces

i have same error .

版本: 1.6.23 (Universal)

提交: 1.99.3

日期: 9b5f3f4f2368631e3455d37672ca61b6dce85430

Electron: 2025-09-15T21:49:07.231Z (1 天前)

ElectronBuildId: 34.5.8

Chromium: undefined

Node.js: 132.0.6834.210

V8: 20.19.1

OS: 13.2.152.41-electron.0

1 Like

same here. Both on ssh as well as local container.

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

1 Like

This has been reported yet. External terminal is not available anymore, they replaced it by agent terminals which are not capable of many things. Solution for now is downgrade to v1.5

I have same problem! AND something wrong with my shell. my zsh is not loaded in this terminal

For now, if you want, can say to your agent that use this “wrapper” sign.
/bin/zsh -c “….”

This command allow to your agent to run all terminal command from ZSH terminal, into you common terminal, can change this for another terminal if you preferrer.
Say in the start of the request that he/her need to use this command because the IDE is stock, and voila! Your terminal is back again (i guess :stuck_out_tongue: more or less )

I will pay attention for updates.

Bye!

1 Like

I tried many workarounds, some of them partially worked but the most important thing, inputs are not available anymore

agent terminal is read only so you cannot interact with it anymore… Unless they rollback to external terminals i do not see how this should work..

Same here

same here

Version: 1.6.27

VSCode Version: 1.99.3

Commit: d750e54bba5cffada6d7b3d18e5688ba5e944ad0

Date: 2025-09-17T20:21:17.042Z (1 day ago)

Electron: 34.5.8

Chromium: 132.0.6834.210

Node.js: 20.19.1

V8: 13.2.152.41-electron.0

OS: Darwin arm64 23.6.0

Fixed for me in 1.6.35

Thanks :slight_smile:

1 Like

My version is 1.6.45 (Universal)
And I still have this problem.

–: eval: line 2754: syntax error near unexpected token `(’
–: eval: line 2754: `del () ’
–: line 1: dump_bash_state: command not found

1 Like

Still have this issue with 1.7.33

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