fix(tui): directory handling in AttachCommand#6934
fix(tui): directory handling in AttachCommand#6934aryasaatvik wants to merge 2 commits intoanomalyco:devfrom
Conversation
… set current working directory
|
The following comment was made by an LLM, it may be inaccurate: SummaryNo duplicate PRs found. The PR you're creating appears to be unique. However, I found related PRs that address similar concerns with the attach command:
These PRs touch on related functionality but appear to address different aspects. Make sure to review them to ensure your fix doesn't conflict with existing solutions and aligns with the overall directory handling strategy. |
|
@rekram1-node can you take a look? remote opencode connections are broken in v1.1.1 |
Fixes ENOENT errors when attaching to remote opencode servers.
The v1.1.1 attach command always sent the client's cwd to the server via
x-opencode-directoryheader. For remote servers, this path doesn't exist, causing MCP connections, bash tool and more execution to fail with ENOENT.Now
directoryis only sent when--diris explicitly provided, letting the server use its own cwd by default.related #6715