Skip to content

feat(bots): list a Bot's subagents in its details panel - #325

Merged
diegojohnsonl merged 1 commit into
feat/botsfrom
feat/bot-panel-subagents
Nov 30, 2026
Merged

diegojohnsonl merged 1 commit into
feat/botsfrom
feat/bot-panel-subagents

Conversation

@diegojohnsonl

Copy link
Copy Markdown
Collaborator

Why

A Bot's chat panel hid the subagents it delegated, while a regular thread's panel lists them under "Previous agents". The goal is the same list, with the same look, in the Bot panel.

What changed

  • BotDetailsPanel renders the existing ThreadRelationshipsPanel for the Bot's thread, after Automations, in the same order the regular panel uses.
  • One browser test: the Bot panel lists the Bot's subagents and pages the rest behind "Show N more". It fails without the change (no "Previous agents" button) and passes with it.

Scope

  • No new component and no new data plumbing. useThreadRelationshipShells already selects every shell whose parent is the given thread, and a Bot's delegated children carry parentThreadId = the Bot thread.
  • Mobile is unchanged. Mobile has no Bot details panel and no "Previous agents" list for any thread. Its regular-thread equivalent is the Agents sheet (ThreadAgentsSheet) on the floating Agents pill, and Bot chats already render through that same thread screen.

Tradeoffs

  • The panel passes showLineage and showSideChats as true, so a Bot thread also shows active agents and side chats, the same as a regular thread. It ignores the regular panel's per-section visibility settings, as the Bot panel already does for Automations.

Verification

  • Real app on an isolated dev server (own .t3 state, --no-seed, ports 16757/8717). A fresh Bot, seven Replay-provider threads (no paid model) re-parented under the Bot thread in that server's SQLite. The panel showed "Previous agents 7", six rows plus "Show 1 more"; clicking a child opened it beside the Bot as "Subagent of Rushu".
  • Web typecheck passes. vp run check:changed origin/feat/bots passes (format, lint, knip, typecheck, test, react compiler).
  • Principles: Laziness Protocol (reuse the panel, 7 lines), Test Behavior Not Implementation (asserts visible rows and paging, fails without the change), Prove It Works (real app run, not only the test).

🤖 Generated with Claude Code. Made by Claude Opus 5.5 in Claude Code, running in T3 Code, in poteto mode.

The Bot chat's right panel now renders the same lineage section a regular
thread shows, so a Bot's delegated children appear under "Previous agents"
with their status, "Show N more" paging, and click-to-open.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@diegojohnsonl
diegojohnsonl merged commit 460d8ed into feat/bots Nov 30, 2026
diegojohnsonl added a commit that referenced this pull request Nov 30, 2026
Merges feat/bots at 488ac5c: #321, #323, #325, #328, #332, #337
and the #327 back-merge.

- #328's card_request and upstream's handoff_request (pingdotgg#44774) both stay:
  in the contracts turn-item unions, the Orchestrator's command routing,
  the run-recovery exclusions, the MCP item summaries, and the web and
  mobile timelines. The handoff request keeps its own item status and
  does not use #328's pending-request record.
- Mobile's ThreadFeed keeps #328's single request-card switch and adds
  the handoff card to it, so the per-type activity-group helpers stay
  removed.
- The budget test leaves out tools hidden outside Bots (#328) and tools
  hidden from threads or limited to linked callers (upstream).
- #321's Bot-starting-work test layer gets the HandoffImport,
  ThreadHandoff and ThreadImportService mocks. Upstream's thread handoff
  and import made the project and orchestrator toolkits require them.
  Git merges the file cleanly, so it isn't flagged.
- Translation catalogs take both sides' keys, ordered as gt generate
  puts them.
- The agent context budget is the measured value: upstream's sizes,
  plus the 46 bytes feat/bots adds to the MCP tool list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant