Environment
- OS: Darwin 24.4.0 (macOS)
- PowerShell: 7.4.1
- PSReadLine: 2.3.4
- Shell: /bin/zsh
- Workspace: /Users/jlcases/codigo/deepthinkerio-old
Issue Description
Experiencing consistent PowerShell integration issues in Cursor AI. Any terminal command execution results in cursor positioning errors.
-
Core Issue
- All terminal commands fail with PowerShell cursor positioning errors
- Issue appears to be with PowerShell’s terminal rendering
- Affects all command execution attempts regardless of the command type
-
Error Pattern
Consistently getting the same PowerShell error:System.InvalidOperationException: Cannot locate the offset in the rendered text that was pointed by the original cursor. Initial Coord: (44, 12) Buffer: (164, 13) Cursor: (45, 9) at Microsoft.PowerShell.PSConsoleReadLine.RecomputeInitialCoords(Boolean isTextBufferUnchanged)
-
Context
- Issue occurs in Cursor’s AI interface
- Using the
run_terminal_cmd
tool - PowerShell seems to be intercepting all terminal interactions
- No actual command output is being received
Expected Behavior
- Terminal commands should execute normally
- Should receive command output rather than PowerShell errors
- Terminal integration should work with both PowerShell and zsh
Questions
- Is this a known issue with PowerShell integration in Cursor?
- Are there specific settings needed for terminal integration?
- Is there a recommended workaround for this PowerShell rendering issue?
- Should terminal integration be configured differently?
Additional Information
The error suggests a fundamental issue with PowerShell’s cursor positioning and terminal rendering in the AI environment, rather than with specific commands.
Steps to Reproduce
- Use Cursor AI
- Attempt to execute any terminal command
- Observe PowerShell cursor positioning errors instead of command output
Would appreciate guidance on resolving this PowerShell integration issue.