[PR #13079] feat(vscode): connect to any opencodes running in current working directory #14502

Closed
opened 2026-02-16 18:19:17 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13079

State: closed
Merged: No


What does this PR do?

Currently, this extension cannot detect an existing opencode instance running in the same current working directory. It keeps spawning a new opencode instance alongside the text editor, even though I already have one running in tmux.

So I’m trying to make the extension recognize my current session:

  1. Native opencode terminal -> send via HTTP
  2. Any vscode opencode terminal -> focus then send via HTTP
  3. External opencode (same CWD in tmux) -> detect and send via HTTP
  4. No opencode found -> spawn new integrated terminal (default behavior we have before my PR)

How did you verify your code works?

I had opencode generate some tests, and I also tested it manually myself. Video attachment below

https://github.com/user-attachments/assets/6c450336-8be7-492a-8f7f-0fd4407ff6ea

Closes #13083

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13079 **State:** closed **Merged:** No --- ### What does this PR do? Currently, this extension cannot detect an existing opencode instance running in the same current working directory. It keeps spawning a new opencode instance alongside the text editor, even though I already have one running in tmux. So I’m trying to make the extension recognize my current session: 1. Native opencode terminal -> send via HTTP 2. Any vscode opencode terminal -> focus then send via HTTP 3. External opencode (same CWD in tmux) -> detect and send via HTTP 4. No opencode found -> spawn new integrated terminal (default behavior we have before my PR) ### How did you verify your code works? I had opencode generate some tests, and I also tested it manually myself. Video attachment below https://github.com/user-attachments/assets/6c450336-8be7-492a-8f7f-0fd4407ff6ea Closes #13083
yindo added the pull-request label 2026-02-16 18:19:17 -05:00
yindo closed this issue 2026-02-16 18:19:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14502