[BUG] cursor <-> claude code integration does not work from inside tmux
Status Fixed / completed
Maintainer reply ✓ Yes — blois
Activity 13 comments · opened May 22, 2025 · closed Jun 2, 2025
💡 Likely answer: A maintainer (blois, collaborator)
responded on this thread — see the highlighted reply below.
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- 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
13 Comments
Exporting
TERM_PROGRAM=cursorshould make it pick up that it's in Cursor.cursorwill also need to be in the path for it to workJust tried it, didnt work.
Ah, ok. I'm seeing an error:
I do see the extensions in my setup
just adding on here that I am seeing similar issues in vs code insiders, vs code release version works fine.
export TERM_PROGRAM=code-insidersdoes 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.
!Image
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.