Directory shown when attached to an OC Server is wrong #3442

Closed
opened 2026-02-16 17:40:05 -05:00 by yindo · 2 comments
Owner

Originally created by @OpeOginni on GitHub (Dec 10, 2025).

Description

When you run an Opencode server in a different directory, after attaching the directory shown is the one the TUI Client is running on, it should be the one of the Server since thats where code changes, etc happens.

OpenCode version

1.0.138

Steps to reproduce

  1. Serve Opencode in a Project Directory
  2. Attach to OC server on a different Directory
  3. Look at the Dir the TUI displays

Screenshot and/or share link

Image

Operating System

No response

Terminal

Ghostty

Originally created by @OpeOginni on GitHub (Dec 10, 2025). ### Description When you run an Opencode server in a different directory, after attaching the directory shown is the one the TUI Client is running on, it should be the one of the Server since thats where code changes, etc happens. ### OpenCode version 1.0.138 ### Steps to reproduce 1. Serve Opencode in a Project Directory 2. Attach to OC server on a different Directory 3. Look at the Dir the TUI displays ### Screenshot and/or share link <img width="1321" height="610" alt="Image" src="https://github.com/user-attachments/assets/881d38d0-dbc8-4931-b0a7-1303922b9247" /> ### Operating System _No response_ ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:40:05 -05:00
yindo closed this issue 2026-02-16 17:40:06 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 10, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #4966: File paths resolved from server's cwd instead of client's cwd when using opencode attach
  • #4686: TUI sends absolute local paths causing ENOENT on server side

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 10, 2025): This issue might be a duplicate of existing issues. Please check: - #4966: File paths resolved from server's cwd instead of client's cwd when using `opencode attach` - #4686: TUI sends absolute local paths causing ENOENT on server side Feel free to ignore if none of these address your specific case.
Author
Owner

@OpeOginni commented on GitHub (Dec 10, 2025):

Noticed when running server remotely!

@OpeOginni commented on GitHub (Dec 10, 2025): Noticed when running server remotely!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3442