# Cursor commands hang indefinitely (no terminal attached) on Fish shell

**URL:** <https://forum.cursor.com/t/cursor-commands-hang-indefinitely-no-terminal-attached-on-fish-shell/149176>\
**Category:** Bug Reports\
**Tags:** terminal\
**Created:** [January 17, 2026, 5:02pm UTC](https://forum.cursor.com/t/cursor-commands-hang-indefinitely-no-terminal-attached-on-fish-shell/149176 "2026-01-17T17:02:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Finch](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/william_finch/32/94868_2.png) [@William\_Finch](https://forum.cursor.com/u/William_Finch)\
**Post date:** [January 17, 2026, 5:02pm UTC](https://forum.cursor.com/t/cursor-commands-hang-indefinitely-no-terminal-attached-on-fish-shell/149176/1 "2026-01-17T17:02:23Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

In Cursor, commands initiated by Agents/command runner (e.g., running tests) appear to start but then hang in an infinite “running” state. There’s no live terminal session attached/linked, no output streaming, and the command never completes. This blocks all Cursor-driven command execution.

### Steps to Reproduce

Open the Cursor agent and let it attempt to run any command. The model doesn’t matter.

### Expected Behavior

It should be able to run commands normally like it has in the past. This issue happens intermittently, and I’m not sure how to resolve it. I’ve seen it before.

### Screenshots / Screen Recordings

 ![Screenshot 2026-01-17 at 9.56.42 AM.png](https://us1.discourse-cdn.com/cursor1/original/3X/3/5/357ab5be9868a07045dd3db715e45c2a28b5b63a.png)

### Operating System

MacOS

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.41  
VSCode Version: 1.105.1  
Commit: 2ca326e0d1ce10956aea33d54c0e2d8c13c58a30  
Date: 2026-01-16T19:14:00.150Z (21 hrs ago)  
Electron: 37.7.0  
Chromium: 138.0.7204.251  
Node.js: 22.20.0  
V8: 13.8.258.32-electron.0  
OS: Darwin arm64 25.2.0

### For AI issues: which model did you use?

Composer

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [January 17, 2026, 8:20pm UTC](https://forum.cursor.com/t/cursor-commands-hang-indefinitely-no-terminal-attached-on-fish-shell/149176/3 "2026-01-17T20:20:47Z")

</div>

Hey, thanks for the report. This looks like a known issue with shell integration in 2.3.x, where the agent can’t run commands in the terminal.

Try using Legacy Terminal as a workaround:

- Settings \> Cursor Settings \> Agents \> Legacy Terminal: turn it on
- Restart Cursor
- Try running the command via the agent again

If that doesn’t help, please share:

- Console logs: `Cmd + Shift + P` \> Developer: Toggle Developer Tools \> Console tab (screenshot or error text)
- Output of `echo $SHELL` in the terminal
- The Request ID from the chat (chat menu \> Copy Request ID)

In a similar Linux case [Cursor doesn't execute the command of agent and stuck](https://forum.cursor.com/t/cursor-doesnt-execute-the-command-of-agent-and-stuck/148929), the issue was that Cursor tried to start zsh instead of the configured shell. The logs should show what’s happening on your side.

---

<div class="post-metadata">

**Author:** ![William\_Finch](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/william_finch/32/94868_2.png) [@William\_Finch](https://forum.cursor.com/u/William_Finch)\
**Post date:** [January 19, 2026, 1:10am UTC](https://forum.cursor.com/t/cursor-commands-hang-indefinitely-no-terminal-attached-on-fish-shell/149176/4 "2026-01-19T01:10:01Z")

</div>

Thanks @deanrie that resolved the issue for now.

---

<div class="post-metadata">

**Author:** ![William\_Finch](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/william_finch/32/94868_2.png) [@William\_Finch](https://forum.cursor.com/u/William_Finch)\
**Post date:** [January 30, 2026, 3:32pm UTC](https://forum.cursor.com/t/cursor-commands-hang-indefinitely-no-terminal-attached-on-fish-shell/149176/5 "2026-01-30T15:32:06Z")

</div>

@deanrie

I’m still encountering this issue after upgrading to **Cursor version 2.4.23**. I did some debugging, and here’s what I found.

On **non-legacy terminal mode** , whenever I start a new agent, I get the following error in the console:

```auto
workbench.desktop.main.js:58  
ERR An unknown error occurred. Please consult the log for more details. 
{ errno: -13, code: 'EACCES', syscall: 'spawn /opt/homebrew/share/zsh', path: '/opt/homebrew/share/zsh', spawnargs: Array(4) }

```

I do have `zsh` installed; however, it is located at:

```auto
$ which zsh
/bin/zsh

$ echo $SHELL
/opt/homebrew/bin/fish

```

Additionally, my **default shell is `fish`, not `zsh`**. This is configured in both:

- the `$SHELL` environment variable, and

- Cursor settings under **Terminal › Integrated › Default Profile: macOS**

Despite this, Cursor appears to be attempting to start `zsh` from `/opt/homebrew/share/zsh`, which does not exist or is not executable in my setup.

 ![Screenshot 2026-01-30 at 7.19.05 AM](https://us1.discourse-cdn.com/cursor1/original/3X/d/5/d50d06b2626ff80dc2350554647bf0d6e3431079.jpeg)

 ![Screenshot 2026-01-30 at 7.15.53 AM](https://us1.discourse-cdn.com/cursor1/original/3X/a/3/a3bbf2237cd0c14eb42e40dea249af122d187ef1.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [February 21, 2026, 3:32pm UTC](https://forum.cursor.com/t/cursor-commands-hang-indefinitely-no-terminal-attached-on-fish-shell/149176/6 "2026-02-21T15:32:44Z")

</div>

Closed on February 21, 2026, 3:32pm UTC

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