Skip to content

Agents panel: Prism spawns section, collapsed child tree, parent breadcrumb #17

Description

@lukemaj

Outcome

The Agents panel shows who started what, stays compact, and lets the user move between parent and child threads.

Acceptance criteria

  1. Prism spawns section. Keep "Direct spawns" for everything this thread started itself (harness subagents and spawn_thread children). Add a "Prism spawns" section for threads Model Router (planned product name Prism) started on this thread's behalf, grouped by job (label: the job's request id, status and route). Router threads are recognized from their first message tag [model-router job <id> ...] or a small metadata field if one exists; pick the least invasive.
  2. Collapsed tree. A row whose thread has its own child threads shows a small chevron with a child count (for example ▸ 3), collapsed by default. Clicking it reveals the children indented under the row as compact one-line rows (status dot, title, model); clicking again hides them. Nothing expands on its own, so the panel never becomes congested. Rows stay clickable to open their thread.
  3. Header breadcrumb. A child thread's header shows project / parent title / child title, with the parent title clickable, and a compact menu to switch between sibling child threads. The parent comes from parentThreadId if present, else the sub.<parent>.<suffix> id.
  4. Deferred, not in this Issue: opening harness-internal subagents read-only.
  5. Upstream edits minimal and listed in docs/fork.md; web tests for section assignment, tree toggle state and breadcrumb; fork CI green; verified live on an isolated instance with screenshots in the PR.

Objective contribution

Fork Objective: router jobs as T3 threads, visible and reachable from the thread that started them.

Activity

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