[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

  1. Run cursor
  2. start a tmux session
  3. run claude
  4. /ide Shows no available ides

Expected Behavior

Show running cursor. This works if I am not inside tmux

View original on GitHub ↗

13 Comments

blois collaborator · 1 year ago

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

ramarnat · 1 year ago

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)
blois collaborator · 1 year ago

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
ramarnat · 1 year ago

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
skoonin · 1 year ago

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.

univers3 · 1 year ago

Same here

igorkofman collaborator · 1 year ago

@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.

igorkofman collaborator · 1 year ago

For folks for who it stopped working we should have a fix today.

ramarnat · 1 year ago

woot! Seems to be working now.

!Image

This is in the cursor ide terminal

fses91 · 1 year ago

I still have the issue, its working in normal terminal but not in tmux session the it does not find the ide.

tete1030 · 1 year ago

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)

MrLeoCode · 1 year ago

cc version 1.0.62 -> Same issue is back

github-actions[bot] · 1 year ago

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.