CURSOR UNUSABLE - " Agent execution provider did not respond in time. The extension host is not running or is unresponsive. "

Hey, thanks for the logs. I found a specific root cause. In exthost.log there’s this line:

Extension verification failed for anysphere.cursor-agent-exec: Hash mismatch for files: dist/main.js
Activating extension anysphere.cursor-agent-exec failed

cursor-agent-exec is the extension that registers the agent execution provider. In your install bundle, the dist/main.js file is corrupted or was modified, so the hash check fails, the extension can’t activate, and then the client waits for the provider registration until it times out. That’s why you see waitForProviderRegistration in the stack of the last error. This also explains why neither Legacy Terminal nor clearing ~/.config/Cursor helped. The issue is not in user data, it’s in the install files.

Most likely this is leftover from a mixed install AppImage plus reinstall. You need a fully clean reinstall of the system Cursor:

  1. Close Cursor and kill all processes:
pkill -9 -f cursor
ps aux | grep -i cursor
  1. Remove the current install. The command depends on how you installed it:
  • If via .deb: sudo apt remove --purge cursor or whatever the package name is, check dpkg -l | grep -i cursor
  • If the AppImage was unpacked into /usr/share/cursor/: sudo rm -rf /usr/share/cursor
  • Also check and delete any leftover AppImage in ~/Applications/
  1. Download a fresh installer from Cursor · Download and reinstall. Use the .deb, it’s more stable than AppImage on Ubuntu 24.04:
sudo dpkg -i ~/Downloads/cursor_*.deb
  1. Launch Cursor and try the agent again.

You don’t need to touch user data in ~/.config/Cursor, your settings and account will stay. If the error still happens after a clean reinstall, send the new exthost.log and the Request ID and we’ll dig further.

Also about the sandbox errors in the log like Failed to unshare namespaces: EPERM. On Ubuntu 24.04+ this is AppArmor blocking unprivileged user namespaces. It’s not a blocker for the agent, shell exec works without the sandbox. It does not affect the timeout.