Repository navigation
feat(site/src): render Agent Plugin context - #30577
jscottmiller wants to merge 2 commits into
Conversation
77e1f5e to
8299110
Compare
8299110 to
0c8d9cf
Compare
0c8d9cf to
02463fa
Compare
02463fa to
7dd94c3
Compare
7dd94c3 to
fae952c
Compare
|
/coder-agents-review |
|
Chat: Review posted | View chat Review historydeep-review v0.13.0 | Round 2 | Last posted: Round 2, 28 findings (1 P2, 4 P3, 9 P4, 14 Nit), REQUEST_CHANGES. Review Finding inventoryFinding inventory: PR #30577Findings
Law analysisR2: effective +1016 -189, head babb07c. Verdict: Split. Enforcement: Mandatory. Move the Contested and acknowledgedRound logRound 1Full panel (round 1). Netero first pass: 2 P4, 1 Note, no P0, panel proceeded. Law not run (effective additions 799). Panel: ging-ts, ging-react, nami, melody (specialists: .ts/.tsx, frontend, wire-format triggers and MCP source format); pariston, mafuuu (core); bisky (tests changed); gon, leorio (once-per-PR floor); razor (wildcard). Size 10 exceeds the focused target of 8 because of the Bisky requirement and the Gon/Leorio floor. Ging-React, Ging-TS, Melody: no in-scope findings. Gon comment-wording P2s downgraded to Nit (reviewer-prompt defines comment wording as Nit); CUI:79 stale comment P2 to P4 (no code relies on the false invariant today). Result: 1 P2, 3 P3, 6 P4, 11 Nit, 3 Note, 4 OOS. Reviewed against 22cc66d..fae952c. Round 2Churn guard PROCEED: 20 of 20 open findings addressed in squashed commit babb07c (cited e3a1026 not in repo). Law ran (first time effective additions exceeded 1000, no prior analysis): Split, Mandatory (RoleSelector.tsx to its own PR). Law gate says skip panel, but About deep-reviewCRF = Coder Review Finding (P0-P4, Nit, Note)
|
There was a problem hiding this comment.
This PR adds Agent Plugin attribution to the composer skills menu and the context indicator. Findings: 1 P2, 3 P3, 6 P4, 11 Nit.
The PR description and commit body repeat the per-file summary already in the PR map, and do not explain three choices: why warnings on OK rows leave the indicator unmarked, why plugin skills stay under the "Workspace skills" heading, and why plugin triggers are always qualified even when the bare name is unique.
Out of scope (needs a ticket or explicit acceptance by a human):
.github/workflows/flake-go.yaml: the failing Flake Check runs Go tests and this PR changes no Go files, so the failure comes from the stacked base branch and was not diagnosed here.coderd/x/skills/skills.go:73: the skill alias format is defined in Go and rebuilt in three frontend places, so a backend format change desynchronizes composer triggers fromread_skilllookup with no error.agent/agentcontext/resolve.go:434: the agent joins cosmetic manifest notices and "resource skipped / not started" messages into oneerrorstring on OK rows, so no client can mark only the warnings that mean a resource did not load.site/src/modules/roles/RoleSelector.tsx:58:Object.groupByis used without a polyfill while browserslist targets Chrome 111 and Safari 16.4, where it throwsTypeError.
Notes:
ContextUsageIndicator.test.tsx:257: the RTL component tests follow FRONTEND_PATTERNS.md FE1, which conflicts with the root AGENTS.md rule against RTL component tests; only a docs change resolves the conflict.ContextUsageIndicator.stories.tsx:216: thePluginResourcesplay function only hovers andWithPluginSkillhas no play function, so the new plugin labels are checked only by visual snapshots.SkillsTriggerMenu.tsx:66: plugin skills render under the "Workspace skills" menu heading whileSkillSourcenow uses "workspace" to mean non-plugin, and the empty-state text ("No personal or workspace skills found.") does not mention plugins.
site/src/pages/AgentsPage/components/ChatMessageInput/ChatMessageInput.tsx:683
Nit [CRF-10] The comments here and at submitChatTurn.ts:122 say a "personal or workspace skill" takes precedence over a built-in command, but this PR makes plugin a separate skill source that also takes precedence. (Mafuuu)
Write "personal, workspace, or plugin skill".
🤖
🤖 This review was automatically generated with Coder Agents.
fae952c to
e3a1026
Compare
4aa2f0e to
acf1ad6
Compare
acf1ad6 to
25ce093
Compare
25ce093 to
9fe9746
Compare
9fe9746 to
babb07c
Compare
|
/coder-agents-review |
0c397e8 to
5ab2a39
Compare
5ab2a39 to
8e88ee8
Compare
The composer's skills menu lists plugin skills under "Workspace skills", since they arrive in the same pinned context as other workspace skills. Like workspace triggers, plugin triggers are always qualified: a qualified alias resolves even if another skill with the same name appears later. Picking a plugin skill inserts a skill chip labeled /plugin/<plugin>/<name>. The chip carries the plugin name, sends it as skill_plugin_name, and keeps it through drafts, copy and paste, edits, the transcript and the queue. The context indicator groups plugin skills under their plugin, lists OK plugins, and names issue rows as the lists do. Any issue marks the indicator, including a warning on an OK row, because some of those warnings are the only report that a plugin server or skill was skipped.
8e88ee8 to
b29b709
Compare
…gents-ui Main redesigned the Agents context popover (accordion tree, ACP section, per-section issues) and renamed ChatPageContent.test.ts to .tsx. The merge keeps main's design and re-applies this branch's plugin behavior on it: plugin skills group under their plugin, a Plugins section lists OK plugins and their issues, plugin MCP servers show under a plugin chip, issue rows use plugin-qualified names, and OK rows with warnings mark the indicator. The usage tone follows main's compaction threshold, and the per-section byte totals main removed are dropped. Typed plugin skill aliases keep their plugin name when converted to chips.
Linear: CODAGT-1101
tl;dr: The Agents UI shows Agent Plugin skills, MCP servers and plugins with their plugin attribution.
Note
Updated for main's context popover redesign (#31845, #31927). The screenshots below predate it. The plugin behavior is unchanged, but it now sits on main's design: issues appear in each section's issue list instead of a single Issues list, plugin MCP servers sit under a
plugin: <name>chip rather than having an inline label, plugin manifest issues appear in the Plugins section, and the usage tone follows main's compaction-based threshold. (Coder Agents generated on behalf of @f0ssel.)Plugin skills appear under "Workspace skills" in the composer, because they arrive in the chat's pinned context with the other workspace skills. Their trigger is always
/plugin/<plugin>/<name>, as workspace triggers are always qualified, so the alias keeps resolving if a same-named skill appears later. Picking one inserts a skill chip with that label, which sendsskill_plugin_name(#29323) and keeps the plugin name through drafts, copy and paste, edits, the transcript, and queued messages.The context indicator now displays warnings. A resource that loaded but carries a warning (an OK row with a non-empty
error) is listed under Issues aswarningand marks the indicator, where main listed only resources that failed to load. Some of these warnings are the only report that a plugin server or skill was skipped. Plugins themselves get their own list, and plugin skills and MCP servers are grouped under their plugin.This is the frontend half of #29323, which keeps the API types and a
plugin manifestlabel for the new resource kind.Main (no plugins):

This PR (no plugins; note that the warning is now displayed, causing the width to expand to the panel width cap):

This PR (plugins; the word "broken" comes from the name of the plugin directory containing the broken plugin and is not a part of the UI copy):

PR map
scott/agent-plugins/7-agent-wiring..b29b709049ContextUsageIndicator.tsx(+288/-151):buildContextPanelModelgroups files and skills by directory or plugin, lists OK plugins, names issue rows as the lists do, and reports whether any issue or failure exists.getIndicatorStatemarks the indicator for any resource issue, warnings included.ChatMessageInput/SkillInvocationNode.tsx(+41/-10): the chip node carries the plugin name through clone, JSON, duplicate checks, insertion, andserializeMessageDraft.ChatMessageInput/ChatMessageInput.tsx(+37/-10): the composer splits pinned skills into workspace and plugin lists, shows plugin triggers in the workspace group, and passes the plugin name to chip insertion, paste availability, and the sent parts.utils/skillAliases.ts(+26/-10):getSkillAliasbuilds/plugin/<plugin>/<name>, andresolveSkillTriggersalways qualifies plugin triggers.ChatPageContent.tsx(+12/-9):workspaceSkillsFromChatdedupes skills by plugin and skill name, and carriespluginName.ChatMessageInput/skillClipboard.ts,SkillChip.tsx,QueuedMessagesList.tsx,UserMessageContent.tsx,chatInputContent.ts,chatMessageEdits.ts,SkillsTriggerMenu.tsx(+28/-10): copy and paste, chip labels, the request, and the optimistic edit carry the plugin name.This PR was generated by Coder Agents on behalf of @jscottmiller.