Skip to content
Source
Sign inSign up
pingdotgg/t3code

refactor(web): remove the agents right panel #12835

Mergedmaria-rcksmerged 2 commits intot3code/codex-turn-mapping fromrefs/pull/12835/headmerged by maria-rcks View on GitHub

maria-rckscommented

The 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: agents right panel in dark theme

Before, light:

before: agents right panel in light theme

After, dark:

after: right panel without agents in dark theme

After, light:

after: right panel without agents in light theme

Written by gpt-6-astra (Codex) in T3 Code

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium

      https://github.com/pingdotgg/t3code/blob/fcd69d546b1c5fe4fc74f271dd768983f1958d80/apps/web/src/components/ChatView.tsx#L10106

      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.

      🤖 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.
      
    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      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).
    4. Note

      Written by gpt-6-astra on behalf of Maria

      confirmed: 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.

    5. Understood. Would you like me to prepare the deferred lineage fix in a separate PR against main?

    6. maria-rcks merged thisa7d42df

    7. maria-rcks closed this

Sign in to join this conversation.