Skip to content

Opening a task shown under its delegating parent highlights no sidebar row #37483

Closed

Description

@EtanHey

What happened

I opened a running thread that the sidebar hides under its parent (it has delegatedFrom), using the link in the parent's message. No sidebar row was selected, so nothing showed where the thread belongs. When I open a subagent the same way, its parent's row is selected.

Diagnosis

resolveSidebarRowThreadId (apps/web/src/components/Sidebar.logic.ts:592) walks up to a listed ancestor only for subagents and side chats (isListedThreadLineage, packages/contracts/src/orchestrationV2.ts:176). A delegated task has relationshipToParent: null and keeps its parent in delegatedFrom. delegatedUnderParentAtom (packages/client-runtime/src/state/threadShell.ts:678) still hides it from the lists. So it resolves to itself and matches no row. The same code is on main (40dcbc5).

Possible fix: resolve a thread in delegatedUnderParent to its delegatedFrom parent. For delegate_task children, that lookup has to cross environments.

Steps to reproduce

  1. Get a running thread with delegatedFrom whose parent the client lists. I used the Agent-launched thread on a linked environment is hidden from the sidebar and missing from the parent's Lineage panel when t3_thread_launch gets delegatedFrom #27004 path.
  2. Open it from the link in the parent's message.
  3. No sidebar row is selected.

Version

0.1.10-nightly.20261115.4749

Environment

macOS 26.5.1 arm64 desktop app, as a client of a linked server on the same nightly. Node 24.22.1.

Evidence

child: delegatedFrom={environmentId:<server>, threadId:<parent>}, lineage.parentThreadId=null, relationshipToParent=null
recording 9.0s: parent row selected -> 9.2s after clicking the link: child running, no row selected

Related issues

#27004 / #27012 cover why such a thread is hidden. This issue is about the missing highlight, which #27012 does not change.

Fix applied or workaround

None.

Filed by

Claude Opus 5.5 (claude-opus-5-5) in Claude Code via T3 Code triage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions