t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: A subagent opened in the side chat doesn't show its own subagents (grandchildren); the main view does

Open samdickson22 opened this issue 1 week ago • 2 comments

[!NOTE] 🤖 Claude Opus 5.5 responding on behalf of samdickson22

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. In thread A, start a subagent with delegate_task (child B).
  2. Have B start its own subagent with delegate_task (grandchild C).
  3. Open B in the side chat, from A's timeline or Lineage.
  4. Open B in the main view instead.

Expected behavior

When B is open in the side chat, its own subagents (C) are visible and openable from there, the same as when B is open in the main view.

Actual behavior

  • B in the side chat: C doesn't appear anywhere. The side chat has no Lineage panel and no other entry point to B's children, so the only way to reach C is to open B in the main view.
  • B in the main view: C shows up, because the main view has the side panel with B's full lineage.

The result is that nested delegation is invisible from the place where people usually look at a subagent.

Impact

Minor bug or occasional failure

Orchestrator threads that delegate to subagents which delegate again (a lead that starts a reviewer, a fixer that starts a recorder) hide the second level unless you leave the side chat.

Version or commit

0.1.12-nightly.20261123.5151 (desktop nightly), 856b105fa23f9cb9fdd49a8f102cb66a71b78265

Environment

macOS desktop app (nightly). Seen with Claude subagents started through delegate_task.

Workaround

Open the child in the main view to see and open its subagents.

Related: #33409 (Lineage omits older child threads), #28873 (native subagent threads parented to the root thread).

samdickson22 avatar Nov 23 '26 23:11 samdickson22

I tried to reproduce this on the current build and could not.

Commit 844d491ff8 (origin/main). Started T3CODE_DEV_SEED=0 vp run dev in a fresh worktree (fresh database), added a throwaway git project, and enabled the OpenCode provider. Ran t3 thread start <proj> "<prompt>" --provider opencode --model openai/gpt-5.6-luna --wait. The prompt told thread A to call delegate_task (synchronous) for 'Child B', and Child B to call delegate_task for 'Grandchild C', which replied PONG. The run completed, and the database showed the lineage A -> Child B (subagent) -> Grandchild C (subagent). Paired the web app in the preview browser (1600x950) and opened Thread A in the main view. Expanding 'Worked for 41s' showed the 'Open Child B' card, and clicking it opened Child B in the side panel (SideThreadPane). In B's side chat, the 'Worked for 26s' section starts collapsed, as it does in any view. Expanded, it showed 'Checked orchestration capabilities' and an 'Open Grandchild C' card (PONG, 7s). Clicking that card opened Grandchild C as a second side-panel tab ('Child B' | 'Grandchild C'), headed 'Subagent of · Child B'. So C is visible and openable from B's side chat. The real difference from the main view: the main view also has the Lineage panel, which lists children without expanding anything, and the side tab has no Lineage panel. Not tested: a Claude-driven chain (no first-party Claude sign-in on the VM). Claude through OpenCode failed with an unrelated tool-schema error, so the chain ran on GPT-5.6 Luna. The subagent card is built from orchestration data, not provider output.

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.

juliusmarminge avatar Nov 23 '26 23:11 juliusmarminge

[!NOTE] 🤖 Claude Opus 5.5 responding on behalf of samdickson22

Thanks for testing it. Your test shows the problem. In B's side tab, C only appears as a card inside B's collapsed "Worked for" section. The side tab has no Lineage panel, so you can't see B's subagents unless you know which work log to expand.

In practice it's worse than in your test. Our children use async delegate_task, so B starts several subagents and keeps working for many more turns. By the time you open B, those cards sit in old, collapsed work logs, and none of them show whether the subagent is still running. Some of our subagents also run on a linked machine, and the main view's Lineage panel is the only place that lists them next to the local ones.

Could you reopen this as "the side tab should show the thread's lineage"? Showing the Lineage panel, or just its list of children, would fix it.

Version 0.1.12-nightly.20261123.5151. Claude Opus 5.5 subagents started with async delegate_task, some on a linked environment.

samdickson22 avatar Nov 24 '26 00:11 samdickson22