Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Agent Mode Ignores User-Modified Commands in Terminal
Steps to Reproduce
Bug Summary:
When the Agent suggests a terminal command and I manually modify it before execution, the Agent ignores my changes and executes the original unmodified command instead.
Detailed Description:
In Agent mode, when a command is suggested (e.g., python3 -c "import openpyxl; print(openpyxl.__version__)"), I can see the command displayed in the terminal interface. If I manually edit it to use a different interpreter (e.g., changing python3 to python3.11), the UI shows my modified command highlighted in red. However, when the command is executed, the Agent runs the original suggested command, not my edited version.
Steps to Reproduce:
- Open Cursor and activate Agent mode
- Wait for Agent to suggest a terminal command (e.g.,
python3 -c "import openpyxl; print(openpyxl.__version__)") - Manually edit the command in the terminal interface (e.g., change
python3topython3.11) - Execute the command
- Observe that the original command is executed instead of the modified one
Expected Behavior:
The Agent should execute the command exactly as modified by the user, respecting all manual edits.
Actual Behavior:
The Agent executes the original suggested command, completely ignoring user modifications. The “Ran command” indicator also shows the original command (e.g., “Ran command: python3”), confirming that the modification was not applied.
Impact:
This bug significantly impacts workflow efficiency, as users cannot easily:
- Switch between different Python/Node.js/runtime versions
- Modify command arguments or flags
- Correct or customize Agent-suggested commands
Environment:
- Operating System: Linux
- Shell: bash
- Cursor Version: [2.4.21]
Additional Information:
I have attached a screenshot that clearly demonstrates this issue. The screenshot shows:
- The modified command displayed in the UI (highlighted in red)
- The “Ran command” indicator showing the original command
- The actual command output confirming the original command was executed
This appears to be a UI/execution synchronization issue where the displayed command and the executed command are not properly synchronized.
Screenshots / Screen Recordings
Operating System
Linux
Version Information
版本: 2.4.22
提交: 1.105.1
日期: 618c607a249dd7fd2ffc662c6531143833bebd40
Electron: 2026-01-26T22:51:47.692Z
ElectronBuildId: Stable
Chromium: Default
Node.js: 39.2.7
V8: 142.0.7444.235
OS: 22.21.1
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
