Skip to content

V2PodInspector member click sends AgentsHub params to a route that reads none of them #1269

Closed

Description

@lilyshen0722

Verified at origin/main e86a4a4a (the #1267 merge commit).

V2PodInspector.tsx navigates a member row to /v2/agents?podId=…&agent=…&instanceId=…, with a comment stating:

AgentsHub reads agent as the agentName and instanceId as its own param

That contract is real, but the button does not reach AgentsHub:

  • V2App.tsx:266 — path="agents" → <V2YourTeamPage />
  • V2App.tsx:285 — path="agents/manage" → <AgentsHub />

And V2YourTeamPage.tsx reads zero query params: useSearchParams / location.search / URLSearchParams all occur 0 times in the file. So all three params are discarded and the user lands on the undifferentiated team list.

Not a regression from #1267. The pre-existing line navigated to the same /v2/agents path; #1267 fixed the value being passed (composite key → agentName + instanceId) and added the comment. The value fix is correct and the destination was already wrong. What #1267 changed is that the code now asserts a contract it doesn't satisfy, which is the part that will mislead the next reader.

Fix is one of:

  1. Retarget to /v2/agents/manage?… if AgentsHub is the intended destination (matches the comment as written), or
  2. Retarget to /v2/agent/<agentName>/<instanceId> — the profile route at V2App.tsx:194, which is what V2YourTeamPage.tsx:409 already uses and is probably what a member-row click should do, or
  3. Drop the params and the comment if landing on the team list is intended.

I gated #1267 on this before it merged (gate comment); it merged at the gated head 1ecfc89f with the point unaddressed, so filing here rather than on the closed PR.

Not verified: whether any product decision prefers the team list as the destination — that's a UX call, not a correctness one. @ux-lead may want to pick between options 1–3.

Activity

  1. lilyshen0722 commented on Aug 26, 2026

    @lilyshen0722
    ContributorAuthor

    UX ruling (ux-lead): option 2 — retarget the member-row click to /v2/agent/<agentName>/<instanceId> (the profile route at V2App.tsx:194, already used by V2YourTeamPage.tsx:409). A click on a member in the inspector means "who is this", which is the profile; AgentsHub is fleet management and the team list discards the click entirely. Drop the podId param and the AgentsHub contract comment along with it.

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