refactor(web): remove the agents right panel #12835
t3code/codex-turn-mapping fromrefs/pull/12835/head·merged by maria-rcks View on GitHubThe thread's lineage control already shows its subagents, so the duplicate Agents right-panel surface is removed. This deletes the tab, launcher/menu entry and shortcut, roster, and panel-toggle badge; the badge existed only to point at that surface. The elapsed helper moves unchanged beside lineage, and persisted Agents selections fall back to a surviving tab or close an empty panel.
Verified on Blacksmith: web typecheck, targeted lint (0 errors), and all 92 tests across the two affected existing test files. Browser checks with a real-data snapshot covered Files/Diff switching, the add menu, lineage expansion and child navigation, and legacy persisted state migration (including preserving a closed panel's surviving selection). No new test files.
All required checks pass on 71820f35433c5a2eed87db5467c6acd89dd7faa4, including all server shards. Two independent final code reviews approved this head.
Known follow-up: lineage excludes native subagents without a child thread. This pass follows the explicit request to delete the roster and leave lineage unchanged; transcript subagent rendering is preserved.
Before, dark:

Before, light:

After, dark:

After, light:

Written by gpt-6-astra (Codex) in T3 Code
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
🟡 Medium
Removing the Agents roster makes projected subagents with
childThreadId: nullinvisible: the replacement lineage view filters them out, so provider-native or still-unlinked agents have no name, status, progress, result, or activity view. The deletedagentPanelModelincluded everyserverProjection.subagents; retain a fallback representation for null-child agents or keep the roster until lineage renders them.Also found in 1 other location(s)
apps/web/src/components/RightPanelTabs.tsx:885Removing this entry makes provider-native subagents that do not have a child thread disappear from the replacement UI.
ThreadRelationshipsPanelbuilds its roster withprojection.subagents.filter((subagent) => subagent.childThreadId !== null)(ThreadRelationshipsControl.tsx:176-177), while the removedAgentsPanelconsumed every projected subagent. This is a real supported state (e.g. PiAdapterV2 emits subagents withchildThreadId: null), so users can no longer use the panel/lineage to inspect their status, progress, result, or usage. Keep a non-thread-backed-agent presentation or do not remove the roster until lineage handles these records.🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/web/src/components/ChatView.tsx around line 10106: Removing the Agents roster makes projected subagents with `childThreadId: null` invisible: the replacement lineage view filters them out, so provider-native or still-unlinked agents have no name, status, progress, result, or activity view. The deleted `agentPanelModel` included every `serverProjection.subagents`; retain a fallback representation for null-child agents or keep the roster until lineage renders them. Also found in 1 other location(s): - apps/web/src/components/RightPanelTabs.tsx:885 -- Removing this entry makes provider-native subagents that do not have a child thread disappear from the replacement UI. `ThreadRelationshipsPanel` builds its roster with `projection.subagents.filter((subagent) => subagent.childThreadId !== null)` (ThreadRelationshipsControl.tsx:176-177), while the removed `AgentsPanel` consumed every projected subagent. This is a real supported state (e.g. PiAdapterV2 emits subagents with `childThreadId: null`), so users can no longer use the panel/lineage to inspect their status, progress, result, or usage. Keep a non-thread-backed-agent presentation or do not remove the roster until lineage handles these records.Approvability#
Verdict: Not approved
Macroscope's review found this PR not approvable — This change removes the dedicated Agents right-panel workflow, including its roster, workflow/script details, token summaries, shortcut, and live-status affordances, while migrating persisted panel state to the remaining surfaces. The replacement lineage display and cleanup are coherent, but the user-facing behavior change is substantial enough to require human review.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).Note
Written by
gpt-6-astraon behalf of Mariaconfirmed: lineage currently excludes subagents without a child thread. this is a separate visibility gap, and the pr does not claim lineage covers those records. maria explicitly requested deletion of the entire agents panel and explicitly prohibited changing lineage in this pass. retaining the roster or adding a replacement would contradict that scope, so this is deferred to a lineage follow-up. existing transcript subagent rendering remains unchanged.
Understood. Would you like me to prepare the deferred lineage fix in a separate PR against
main?maria-rcks merged thisa7d42df
maria-rcks closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed