feat(web): add the Agents panel (4/5) - #4663
Draft
shivamhwp wants to merge 2 commits into
Draft
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
shivamhwp
force-pushed
the
subagent-obs/04-agents-panel
branch
2 times, most recently
from
July 27, 2026 20:52
c3a50f8 to
8c6a796
Compare
shivamhwp
force-pushed
the
subagent-obs/03-reuse
branch
from
July 27, 2026 23:03
5187d5b to
cde2598
Compare
shivamhwp
force-pushed
the
subagent-obs/04-agents-panel
branch
from
July 27, 2026 23:03
8c6a796 to
103b937
Compare
shivamhwp
force-pushed
the
subagent-obs/03-reuse
branch
from
July 28, 2026 15:31
cde2598 to
fc5b293
Compare
shivamhwp
force-pushed
the
subagent-obs/04-agents-panel
branch
from
July 28, 2026 15:31
103b937 to
31adb36
Compare
shivamhwp
force-pushed
the
subagent-obs/03-reuse
branch
from
July 28, 2026 19:27
fc5b293 to
85fe8a2
Compare
shivamhwp
force-pushed
the
subagent-obs/04-agents-panel
branch
from
July 28, 2026 19:27
31adb36 to
b270c47
Compare
shivamhwp
force-pushed
the
subagent-obs/03-reuse
branch
from
July 28, 2026 19:46
85fe8a2 to
795eb20
Compare
shivamhwp
force-pushed
the
subagent-obs/04-agents-panel
branch
from
July 28, 2026 19:46
b270c47 to
daf1a88
Compare
shivamhwp
force-pushed
the
subagent-obs/03-reuse
branch
from
July 28, 2026 20:26
795eb20 to
64bf642
Compare
shivamhwp
force-pushed
the
subagent-obs/04-agents-panel
branch
2 times, most recently
from
July 29, 2026 01:19
1dce464 to
4c169ed
Compare
shivamhwp
force-pushed
the
subagent-obs/03-reuse
branch
from
July 29, 2026 01:24
32cbb3d to
c63297e
Compare
Surfaces the subagent data the previous PRs record. A new right-panel tab lists every subagent on the thread with its role, model, status, token usage, recent activity, and the runs it has been activated for. Grouping lives in client-runtime rather than the component so it stays testable: workflow coordinators own their phases, phase status derives from its members, and members orphaned by a missing coordinator fall back to the flat list rather than disappearing. A coordinator is an agent in its own right, so it renders as a card rather than a bare heading — it has a model, usage and activations, and before its members are spawned it is the only row on the thread. It is counted in the tallies for the same reason, but only while it has no members, since afterwards they represent the same work and counting both double-reports it. Without that, a thread running a workflow showed "0 active" with nothing listed and unexplained tokens in the header. Usage follows the same rule: the total keeps whatever the members did not account for. Dropping the coordinator outright erased the whole workflow whenever a provider reported workflow usage but omitted per-agent tokens, and the header read "Usage unavailable" for a workflow that had spent thousands. Read-only: this only renders what the projection already contains.
Co-Authored-By: Claude <noreply@anthropic.com>
shivamhwp
force-pushed
the
subagent-obs/04-agents-panel
branch
from
July 29, 2026 01:24
4c169ed to
70d5111
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fourth of five stacked PRs replacing #4551. Stacked on #4662 — review that first.
Surfaces the subagent data the previous PRs record. A new right-panel tab lists every subagent on the thread with its role, model, status, token usage, recent activity, and the runs it has been activated for. Read-only — it renders what the projection already contains.
Grouping lives in
client-runtimerather than the component so it stays testable: workflow coordinators own their phases, phase status derives from its members, and members orphaned by a missing coordinator fall back to the flat list rather than disappearing.Coordinators are agents too
A workflow coordinator has its own model, usage and activations, and before its members are spawned it is the only row on the thread. So it renders as a card rather than a bare heading, and it is counted in the tallies — but only while it has no members, since afterwards they represent the same work and counting both double-reports it.
Without that, a thread running a workflow showed
0 active · 0 waiting · 0 settledwith nothing listed, and unexplained tokens in the header.Token accounting
Same rule: the total keeps whatever the members did not account for. Dropping the coordinator outright erased the entire workflow whenever a provider reported workflow usage while omitting per-agent
tokens— the header then read "Usage unavailable" for a workflow that had spent thousands. Both fields are populated independently in the Claude adapter, so this is reachable, not theoretical.Testing
Typecheck and lint clean. Web 1,500 passing, client-runtime 486 passing.
Verified in a browser against a real Codex subagent run: the tab renders the agent with its role and model badges,
idlestatus, a real token count and run count, and an expandable "Activity and runs" section.Reviewed by an independent agent pass; the token-collapse bug and the missing coordinator card both came out of it and are fixed here.
Note
The workflow path itself (phases, coordinators) is Claude-only — no other adapter emits
kind: "workflow"— so that branch has unit coverage but has not been exercised against a live provider.