You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Subagents on a linked machine open in the main view even when subagents are set to open in the side chat #41755
🤖 Claude Opus 5.5 responding on behalf of samdickson22
Before submitting
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Set subagents to open in the side chat.
From a thread on machine A, start two subagents with delegate_task:
one on A (no target.environmentId);
one on a linked machine B (target.environmentId = B, plus B's projectId).
Open each from the parent thread: the delegate link in the timeline, or the Lineage panel.
Expected behavior
Both open in the side chat, following the setting.
Actual behavior
The subagent on A opens in the side chat.
The subagent on B opens in the main view and replaces the parent, ignoring the setting.
Likely cause
A delegated task on a linked machine starts its child by forwarding t3_thread_launch to the peer (apps/server/src/peer/RemoteDelegation.ts#L347-L366 at 856b105). On B the child is a top-level thread carrying delegatedFrom, not a thread with relationshipToParent: "subagent". The delegate_task result has childThreadId: null and a remoteChild { environmentId, threadId } instead. The open-in-side decision probably keys on the local subagent relationship or childThreadId, so a remote child falls through to the normal thread route.
Impact
Minor bug or occasional failure
Orchestrators that route work across machines lose their place every time they open a remote child.
macOS desktop app (nightly), linked to another Mac and a Linux machine through T3 Connect.
Workaround
None. Navigate back to the parent after opening a remote child.
Related: #27004 (remote delegated threads missing from the parent's Lineage), #41642 (iOS lists them as top-level threads), #41754 (side chat hides a subagent's own subagents).
I tried to reproduce this on the current build and could not.
Not run in a live app. Read the open path on origin/main 32653fe: the timeline delegate card (apps/web/src/components/chat/V2LifecycleRow.tsx, SubagentCard) and the Lineage remote row (apps/web/src/components/chat/ThreadRelationshipsControl.tsx, RemoteSubagentRow) both open a remote child through useLinkedThreadOpener (apps/web/src/state/linkedThreadView.ts). When the client is connected to the child's environment, resolveLinkedThreadOpen returns "direct". The opener then always navigates to /$environmentId/$threadId and ignores the side-panel intent, and the card passes panel:false so the trigger offers main view only. When the client is not connected to it, mode is "linked" and the setting and intent are honoured (read-only side tab). A real reproduction needs two linked servers, a client connected to both and a real provider making a cross-environment delegate_task. I skipped it because PR #39515 records exactly this behaviour as a decision.
Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.
🤖 Claude Opus 5.5 responding on behalf of samdickson22
Thanks for tracing it. I think this behavior goes against what #39515 was for. That PR set one rule for subagents, side chats and linked threads. A plain click opens them where the "Open subagents and side chats in" setting says, and the modifier opens them the other way.
Remote children skip that rule when the client is connected to their machine. useLinkedThreadOpener takes the direct path and always opens the main view. The card also passes panel: false, so the side panel isn't even offered. The setting only applies to a remote child when the client is not connected to its machine. So the better connected you are, the less your setting does.
T3 is supposed to make linked machines feel like one workspace. Whether the orchestrator puts a subagent on this machine or another one shouldn't change where it opens. Today, opening a remote child replaces the parent in the main view, while its local siblings open beside it.
What I'm asking for:
When the client is connected to the child's machine, apply the same setting and modifiers as for local subagents. Open the real, interactive thread in the side panel, with "Open in main view" in its header.
If direct threads can't go in the side panel yet, add a setting for where threads on other machines open, and keep the modifiers and context menu working for them.
Version 0.1.12-nightly.20261123.5151, macOS desktop app, linked to a second Mac and a Linux machine through T3 Connect. The subagents were started with delegate_task and target.environmentId.
Activity
juliusmarminge commentedon Nov 23, 2026
I tried to reproduce this on the current build and could not.
Not run in a live app. Read the open path on origin/main 32653fe: the timeline delegate card (apps/web/src/components/chat/V2LifecycleRow.tsx, SubagentCard) and the Lineage remote row (apps/web/src/components/chat/ThreadRelationshipsControl.tsx, RemoteSubagentRow) both open a remote child through useLinkedThreadOpener (apps/web/src/state/linkedThreadView.ts). When the client is connected to the child's environment, resolveLinkedThreadOpen returns "direct". The opener then always navigates to /$environmentId/$threadId and ignores the side-panel intent, and the card passes panel:false so the trigger offers main view only. When the client is not connected to it, mode is "linked" and the setting and intent are honoured (read-only side tab). A real reproduction needs two linked servers, a client connected to both and a real provider making a cross-environment delegate_task. I skipped it because PR #39515 records exactly this behaviour as a decision.
Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.
samdickson22 commentedon Nov 24, 2026
Note
🤖 Claude Opus 5.5 responding on behalf of samdickson22
Thanks for tracing it. I think this behavior goes against what #39515 was for. That PR set one rule for subagents, side chats and linked threads. A plain click opens them where the "Open subagents and side chats in" setting says, and the modifier opens them the other way.
Remote children skip that rule when the client is connected to their machine.
useLinkedThreadOpenertakes the direct path and always opens the main view. The card also passespanel: false, so the side panel isn't even offered. The setting only applies to a remote child when the client is not connected to its machine. So the better connected you are, the less your setting does.T3 is supposed to make linked machines feel like one workspace. Whether the orchestrator puts a subagent on this machine or another one shouldn't change where it opens. Today, opening a remote child replaces the parent in the main view, while its local siblings open beside it.
What I'm asking for:
Version 0.1.12-nightly.20261123.5151, macOS desktop app, linked to a second Mac and a Linux machine through T3 Connect. The subagents were started with
delegate_taskandtarget.environmentId.