[BUG] cursor <-> claude code integration does not work from inside tmux
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: 1.0.1
- Operating System: macOS 15.4
- Terminal: Ghosttty + tmux
Bug Description
claude code running inside tmux wont see a running cursor instance when running /ide.
I also have tmux auto start in cursor terminals, and that does not recognize that it is running inside cursor
Steps to Reproduce
- Run cursor
- start a tmux session
- run claude
- /ide Shows no available ides
Expected Behavior
Show running cursor. This works if I am not inside tmux
Exporting TERM_PROGRAM=cursor should make it pick up that it's in Cursor. cursor will also need to be in the path for it to work
Just tried it, didnt work.
➜ claude
╭───────────────────────────────────────────╮
│ ✻ Welcome to Claude Code!
│
│ /help for help, /status for your current setup
│
│ cwd: /Volumes/devel/omniarcs/github.com/locusai/ike-base-replit
╰───────────────────────────────────────────╯
> /ide
⎿ (no content)
! echo $TERM_PROGRAM
⎿ cursor
╭───────────────────────────────────────────╮
│
│ Select IDE
│ Connect to an IDE for integrated development features.
│
│ No available IDEs detected. Make sure your IDE has the Claude Code
│ extension or plugin installed and is running.
│
╰───────────────────────────────────────────╯
Esc to exit
(cursor is in the path)
Ah, ok. I'm seeing an error:
! cursor --list-extensions
⎿ Unable to connect to VS Code server: Error in request.
Error: connect ENOENT /tmp/vscode-ipc-13b05293-93fa-4a98-8a0d-d62186acfa94.sock
I do see the extensions in my setup
! cursor --list-extensions
⎿ akamud.vscode-theme-onelight
anthropic.claude-code
… +22 lines (ctrl+r to expand)
> /ide
⎿ (no content)
╭──────────────────────────────────────────────────────
│ │
│ Select IDE │
│ Connect to an IDE for integrated development features. │
│ │
│ No available IDEs detected. Make sure your IDE has the Claude Code extension or plugin installed and is running. │
│ │
╰──────────────────────────────────────────────────────
Esc to exit
just adding on here that I am seeing similar issues in vs code insiders, vs code release version works fine. export TERM_PROGRAM=code-insiders does solve the issue though.
Update: this stopped working for some reason, not sure why.
Same here
@ramarnat - are you running tmux in ghostty or in cursor's terminal? you have to run it in cursor terminal (without tmux) at least once to install. After that it should work.
For folks for who it stopped working we should have a fix today.
woot! Seems to be working now.
This is in the cursor ide terminal
I still have the issue, its working in normal terminal but not in tmux session the it does not find the ide.
It seems from the latest claude-code version 1.0.56, this suddenly doesn't work. It was working yesterday (or maybe two days ago)
cc version 1.0.62 -> Same issue is back
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.