Agents no longer can access sql connections

Hey, thanks for the report. This is a known issue with the agent terminal on Windows. The sandbox and the PowerShell wrapper conflict, especially after recent updates.

Try this temporary workaround:

  1. Open Cursor settings Ctrl+Shift+J
  2. Go to Agents and turn off Auto-run in Sandbox
  3. In the same section, turn on Legacy Terminal Tool
  4. Ctrl+Shift+P then Terminal: Kill All Terminals
  5. Fully restart Cursor
  6. Try running your psql requests again

Legacy Terminal Tool bypasses the new wrapper script that causes the issue. Commands will ask for confirmation before running, but they should work normally, including reading output.

Related reports and workarounds:

The team is aware of the Windows sandbox issues. No timeline yet, but reports like this help with prioritization.

If the workaround doesn’t help, can you share:

  • A screenshot of what happens when the agent tries to run a psql command, like an error message or empty output
  • Whether you have a custom PowerShell profile set up

Let me know how it goes.

1 Like