Cursor opening `shell-integration` and `zsh` files in the IDE?

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When opening a new cursor agent thread the IDE automatically opens two random file buffer with no content shell-integration and zsh.

When I just close them sometimes they reappear later when opening a new chat or maybe when the agent uses the cli (not sure yet).

Maybe this is due in part to my config which uses Fish on MacOS as a shell.

Steps to Reproduce

Mainly when opening a new agent thread on Cursor. Difficult to reproduce because not really reliable and maybe setup dependant

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.0-pre.27.patch.0 (Universal)
VSCode Version: 1.105.1
Commit: cb22ad9cf38d95f31f4ab249b61a2d21eea8c670
Date: 2025-12-05T08:22:49.454Z (3 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.1.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. We need details to reproduce and file a bug if needed.

Please share:

  • A screenshot of these tabs and their paths: right-click the tab → Copy Path
  • Settings → Terminal: Default Profile (fish/zsh/bash) and whether behavior changes if you temporarily switch to zsh or bash
  • Whether it reproduces with extensions disabled: start Cursor with cursor --disable-extensions
  • Logs: Help → Toggle Developer Tools, Console tab - copy messages at the moment the tabs appear
  • Trigger: does it happen only when creating a new Agent thread or also when the agent runs terminal commands

Additionally: if you use a custom prompt/theme (p10k, etc.), try a simplified prompt under CURSOR_AGENT as described here: Terminal | Cursor Docs

Share the results of these checks - if it reproduces, we’ll collect everything into a ticket.

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