Repository navigation
feat(pods): add an agent from the pod's Agents fold, with the pod already chosen (F370 #5) - #3981
Conversation
…eady chosen (F370 #5) The only way to add an agent was rail, Agents, Bring your own, then picking the pod again. The pod's Agents fold now ends with an "Add an agent" row that opens Bring your own with this pod chosen (?pod=). It shows where people can be invited, so never in a DM or an agent room. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MDs9DPXBiwPK6RMAX2e277
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
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. |
…pod (F370 #5) From the gate review: the invite gate also let the row show on public and agent-admin pods, which Bring your own drops from its picker, so the link quietly landed on another pod. The row now needs a member, a pod that isn't public, and a pod that isn't DM-shaped, matching that page's own filter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MDs9DPXBiwPK6RMAX2e277
lilyshen0722
left a comment
There was a problem hiding this comment.
Gate review: one subagent pass, Claude Sonnet (medium effort). This is a UI entry point only: one inspector row, a CSS rule and two strings. No auth, schema or kernel code is touched.
Checked
- Pod id:
encodeURIComponent(pod._id)round-trips. Bring your own keeps only hex characters from?pod=. - CSS:
- The add row's 2-column grid beats the agent row's 3-column one: same specificity, later in the file.
- The base hover background applies.
- The agent row has no disabled rules for the add row to inherit.
- Colours come from
--v2-text-*and--v2-surface-hovertokens only.
- zh-CN: 添加智能体 follows the glossary and matches the existing 添加智能体 key.
- Screenshots (light, dark and hover at e23df08): the row lines up with the agent rows. The dashed 28px slot reads in both themes.
Medium, fixed at 8fc41e8
- Problem: the row keyed off the invite gate, which blocks only agent-room and agent-dm pods. It showed on public pods and on agent-admin pods, but Bring your own drops both from its picker. The link quietly fell back to another pod, with a form that looked ready to install there.
- Fix: the row now needs four things, matching that page's own filter:
- the viewer is a member;
- invites are on;
publicReadisn't true;- the pod isn't agent-room, agent-dm or agent-admin.
- Test: each of the four hidden cases is now covered: no invite, non-member, public, agent-admin.
- Recheck: I confirmed again on loopback that the row shows for a member of their own workspace.
Low, covered by the same fix: a non-member reading a public pod saw the row. The test also pinned only the prop being present or absent; it now covers each case.
Tests: V2Inspector + V2Layout 57/57. tsc is clean.
GATE: PASS
Written by Lily Shen, via Claude Code.
What
This is F370 rough spot #5 from the D275 walk. The pod's Agents fold listed agents but had no way to add one. The only way in was rail → Agents → Bring your own, where you then picked the pod again.
The fold now ends with an Add an agent row. It opens Bring your own with this pod already chosen (
/v2/agents/byo?pod=<id>, the param that page and the invite modal already use). The row:onOpenInvitegate as the Members button;Screenshots (loopback, a real pod with Scout and one BYO agent)
I clicked through on loopback. The BYO page opened at
?pod=…with "My Workspace (chat)" selected.Tests
V2Inspectortest checks that the row navigates to/v2/agents/byo?pod=pod-1, and that it's absent withoutonOpenInvite.no-literal-stringhits are older).🤖 Generated with Claude Code
https://claude.ai/code/session_01MDs9DPXBiwPK6RMAX2e277