Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Summary
Cursor terminal commands execute successfully but hang indefinitely waiting for prompt detection, requiring manual Ctrl+C to continue. This makes the AI terminal integration completely unusable.
Steps to Reproduce
- Open Cursor in project with Fish shell
- Use AI to run ANY terminal command (e.g.,
echo "test",pwd,git status) - Observe that command executes and outputs correctly
- Observe that Cursor never detects completion
- Must manually press Ctrl+C
Expected Behavior
- AI sends command to terminal
- Command executes
- Output appears
- Cursor detects command completion
- Returns control for next command
Actual Behavior
- AI sends command to terminal
- Command executes successfully

- Output appears correctly

- Cursor NEVER detects command completion

- Spinning “Shift+Skip” indicator appears indefinitely
- User must press Ctrl+C to continue
- Every single command hangs this way
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.7.40
VSCode Version: 1.99.3
Commit: df79b2380cd32922cad03529b0dc0c946c311850
Date: 2025-10-09T02:55:11.735Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Linux x64 6.12.51
Additional Information
What We’ve Tried (ALL FAILED)
Fish Shell Configuration Attempts:
Simplified Fish prompt to minimal >
Removed all ANSI escape codes
Disabled git prompt integrations
Added VSCode shell integration escape sequences (OSC 633)
Detected TERM_PROGRAM=vscode and used ultra-minimal prompt
Disabled fish_greeting
Multiple nixos-config Fish configuration changes
Shell Switching Attempts:
Tried exec bashto switch to Bash - still hangs
Tried bash -c "command"- still hangs
Even Bash commands hang the same way
Project Configuration Attempts:
Removed all Cursor rules (.cursor/rules/) - no effect
Verified no .vscode/settings.json interfering
Key Evidence
Commands Execute Successfully:
account-harmony-ai-37599577 gcp-minimal > echo "test"
test
account-harmony-ai-37599577 gcp-minimal > [HANGS HERE - never returns control]
Error Pattern:
- Command output appears correctly
- Prompt re-renders
- But Cursor’s terminal integration never receives “command complete” signal
- Spinning indicator shows Cursor is still waiting
Timeline:
- September 17, 2025: Everything working perfectly
- CI passed
- Terminal commands worked fine
- Using nixpkgs version of Cursor
- September 18, 2025: Terminal completely broken
- Same Fish configuration
- Same project setup
- Suggests a Cursor update caused the issue
- Troubleshooting Attempt: Created custom Nix flake to install latest Cursor version
- Repository: GitHub - jacopone/code-cursor-nix: Auto-updating Nix flake for Cursor - The AI Code Editor
- Result: Issue persists even with latest version
- This suggests the problem is not specific to the nixpkgs packaging
- October 15, 2025: Issue still persisting (nearly 1 month later)
- Tested with current system configuration
- All terminal commands continue to hang
- Problem remains unresolved with both nixpkgs and custom flake installations
- Confirmed during Chrome browser integration work
- Issue has been ongoing for 27+ days without resolution
Technical Analysis
Root Cause Hypothesis:
Cursor’s shell integration command completion detection is failing. The mechanism that detects when a command finishes executing is not working with Fish shell (and potentially other shells).
NOT the Problem:
NOT Fish shell prompt complexity
NOT ANSI escape codes
NOT Cursor rules
NOT project configuration
NOT specific to Fish (Bash also fails)
IS the Problem:
Cursor’s terminal integration cannot detect command completion
Started after September 17, 2025 (likely a Cursor update)
Affects ALL commands regardless of shell or configuration
Impact
- Severity: Critical - Terminal integration completely unusable
- Workaround: Use external terminal for all commands (defeats purpose of AI integration)
- Affected Workflow: Any AI-assisted terminal operations
Additional Context
What’s Working:
- Cursor editor functionality

- AI code generation

- File operations

- Command execution itself

What’s Broken:
- Terminal command completion detection

- AI terminal integration

- Automated workflows

System Details:
OS: NixOS Linux 6.12.49
Shell: Fish shell with Starship/Tide prompt
Terminal: Cursor integrated terminal
TERM_PROGRAM: vscode
Cursor Installation Method: NixOS (both nixpkgs and custom flake tested)
Fish Version: [Please add: fish --version]
NixOS-Specific Context:
- Running on NixOS with declarative configuration
- Tried TWO different Cursor installations:
- Standard nixpkgs Cursor package
- Latest version via custom flake: GitHub - jacopone/code-cursor-nix: Auto-updating Nix flake for Cursor - The AI Code Editor
- Issue occurs with BOTH installation methods
- This rules out NixOS packaging as the cause
- Suggests core Cursor terminal integration issue
Suggested Fix
Cursor’s terminal integration should:
- Better detect command completion across different shell types
- Handle complex prompts (Starship, Tide, etc.) properly
- Provide fallback detection mechanism
- Add debug logging for shell integration issues
Does this stop you from using Cursor
Yes - Cursor is unusable
