[Bug]: File links to a linked environment's files open on the local machine and fail to read
What happened
On the macOS desktop app, a thread delegated work to a linked Linux machine (omarchy) with delegate_task.
The agent's replies name files on that machine, such as /home/<user>/.codex/AGENTS.md.
Clicking one of those file links opens the right panel, but the file does not load.
The user also opened the delegated child thread itself (the "Thread on omarchy" link) and clicked the same path there.
That failed too.
There is no way to open a linked machine's file from the Mac client.
Diagnosis
Every read went to the local environment, never to the linked one.
The paths exist only on the linked machine, so each read fails with ProjectReadFileError.
Source references are at v0.1.12-nightly.20261121.5038 (commit 9f9ebf61):
- A chat file link calls
openFileInPanel(apps/web/src/components/ChatMarkdown.tsx:896), which callsuseRightPanelStore.getState().openFile(threadRef, path, line). openFile(apps/web/src/rightPanelStore.ts:1006) stores afilesurface with only a path. It has noenvironmentId, unlikeissuesurfaces, which carry their own.RightPanelSurfaceContent.tsx:263renders the file with the panel'sprops.environmentId, which is the thread's own environment.- A message has no way to say "this path is on another environment". So a path that the parent agent copies from a delegate's result always resolves on the parent's machine.
- A linked environment's thread opens as a read-only
LinkedThreadPane. It passesonFileOpen={ignore}(LinkedThreadPane.tsx:226), and the comment at line 161 says the client "has no way to ask" the linked environment for a file. File links in that pane do not open the file on the linked machine. In the trace, every failed read went to the local environment with a local thread's workspace ascwd.
This is unchanged on main.
main is 19 commits ahead of this tag, and none of them touch file links or linked threads.
Steps to reproduce
- On machine A (macOS desktop app), link machine B (Linux) under linked environments.
- In a thread on A, ask the agent to edit a file on B through
delegate_taskwithtarget.environmentIdset to B. - Let the agent reply with B's absolute path, for example
/home/<user>/.codex/AGENTS.md. - Click that path in A's thread. The right panel opens, and the file fails to read.
- Click the delegated child thread's link. It opens as a read-only "Thread on B" view.
- Click the same path inside that view. It fails as well.
Expected: the file opens from machine B, or the link says it lives on B and offers to open it there.
Version
Bug seen on T3 Code Desktop (Nightly) 0.1.12-nightly.20261121.5038, the newest nightly when this was filed.
The user retried on that build at 11:18 UTC, and it still failed.
The same code path is in 0.1.11-nightly.20261120.4979, which the user ran earlier the same day.
Environment
- Client: T3 Code Desktop (Nightly)
0.1.12-nightly.20261121.5038, macOS 27.0.0 arm64, Electron 44.10.1. - Local server: the desktop app's bundled backend, Node v24.22.1.
- Linked environment: Linux
omarchy, kernel 7.2.5-3-omarchy x86_64, linked with full access and reachable. - Agent: Claude Code 2.1.330.
Evidence
Client spans in the local server.trace.ndjson, 2026-11-21 11:13 to 11:18 UTC.
Every failed projects.readFile request has the same shape:
EnvironmentRpc.request environment.id=<local Mac environment> rpc.method=projects.readFile
ProjectReadFileError: Failed to read workspace file '/home/<user>/.codex/AGENTS.md' in '~/.t3/scratch/2026-11-21-add-to-agents-md-in-26019c55'.
- The
cwdvalues were the two local threads' workspaces. - No request went to the linked environment's id.
service.versionon these spans is0.1.12-nightly.20261121.5038.
Related issues
- #27004 and #30265 cover other gaps in how threads delegated to linked environments show up. Neither covers file links.
- I found no existing issue about opening a linked environment's files.
Fix applied or workaround
Nothing was changed on the machine. No working in-app workaround is confirmed. The user can open the file in a thread on machine B, or connect to B directly as its own environment in the client (not tried).
Filed by
Claude Opus 5.5 (claude-opus-5-5) in Claude Code, running t3 triage inside T3 Code.
Thanks for writing this up. It asks for new behaviour rather than reporting a defect, so it does not belong in the bug tracker and I'm closing it as not planned here. Feature ideas are discussed in Discussions: please post it there.