Environment Details
- OS: Linux (Mint linux xfce), kernel 5.15.0-140-generic)
- Cursor Version: 0.50.4
- AppImage Launch Method: Standard AppImage execution
Issue Description
When launching Cursor on Linux, terminal functionality is severely impacted by persistent “No ptyHost heartbeat after 6 seconds” errors. These errors occur regardless of configuration tweaks, rendering the integrated terminal essentially unusable with constant freezes every 6 seconds.
Symptoms
- Terminal freezes/hangs periodically with “No ptyHost heartbeat after 6 seconds” messages
- Initial errors about “Unable to resolve your shell environment in a reasonable time”
- Terminal becomes non-responsive after several minutes of use
- Issue persists even with completely clean shell configurations
Attempted Solutions
I’ve tried literally everything short of rewriting Cursor’s source code myself:
- Modified
.bashrc
to remove slow-loading components (conda/nvm) - Created clean minimal launcher scripts that bypass shell initialization
- Set environment variables to disable shell resolution (
VSCODE_SKIP_RESOLVING_SHELL_ENV=1
) - Completely purged all Cursor/VSCode data directories
- Launched with custom flags (
--no-sandbox
,--disable-gpu
, etc.) - Used isolated environments with controlled environment variables
- Extracted the AppImage and ran the binary directly
The Absurd Reality
It’s 2025, and somehow an Electron-based text editor still can’t reliably manage a pseudo-terminal on Linux. While VS Code handles this with ease, Cursor—based on the same codebase—somehow manages to fall over spectacularly when faced with the complex task of… running bash.
Perhaps the ptyHost is taking scheduled 6-second breaks to contemplate its existence? Maybe it’s actually working perfectly, and those “heartbeat” messages are just its way of saying “I’m still here, just choosing not to respond”?
Impact
This issue makes Cursor practically unusable for Linux developers who (shockingly) occasionally need a working terminal. The irony of an AI-powered development tool that can’t maintain basic terminal functionality isn’t lost on me.
help.