Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Agents needing to run the app being developed frequently generate shell commands that don’t activate the venv programmatically known to the procedural environment and which also SHOULD be known to the AI environment, given the AIs have noticed many times previously the venv had to be activated to correct errors in the commands. This results in many unecessary tool use turns in the agentic flow, as python invocations fail and are then retried with the venv. Cases where the agent has to correct itself should probably be mined for memories to improve future runouts.
Steps to Reproduce
see description
Expected Behavior
venv, especially when known to the procedural environment, should be consistently applied to python invocations in the project.
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.3.34 (Universal)
VSCode Version: 1.105.1
Commit: 643ba67cd252e2888e296dd0cf34a0c5d7625b90
Date: 2026-01-10T21:17:10.428Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0
For AI issues: which model did you use?
Sonnet 4.5
Does this stop you from using Cursor
No - Cursor works, but with this issue