Repository navigation
feat(site/src): show agent definition warnings in the context popup - #137
Conversation
With fork-agent-definitions on, the chat context API reports each agent definition file as a subagent resource, with its parse warnings in the OK row's error. The context popup did not render these rows. It now lists OK definitions under "Agent definitions" with their warnings, and the definitions the agent could not use as issues.
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e0fb2a23bf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
UAT: PASS on head The workspace's
Results:
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merge evidence for head
|

Part of #7
With
fork-agent-definitionson, the context popup now shows the workspace's agent definition files and their problems (brief item 5 and PRD R1.4). Before this change, #83 sent these files through the chat context API assubagentresources, but the popup rendered none of them. A broken definition only turned the indicator's warning tone on, and an OK definition's parse warnings, such as an unknown front-matter field, never appeared. This was item 5 of #75; W10 is paused, so it moved here.Change
ContextUsageIndicatorgets an "Agent definitions" section after ACP. It lists each OK definition by name, grouped by directory, with its description as the tooltip and its warnings below the row. Definitions the agent could not use (invalid, oversize, unreadable) appear as issues with their status and error, like skill issues.subagentrows (Server.ContextResources), so the popup is unchanged.Tests
ContextUsageIndicator.test.tsx): the section's accessible name reports 2 issues, and expanding it shows the joined warnings of an OK definition and the error of an invalid one. A second test checks that warnings alone add the status note to the trigger.ContextUsageIndicator/AgentDefinitionscovers the expanded section.pnpm run lint(tsc, dpdm, compiler check, knip), andbiome format ..frontend-deep-reviewfound no remaining blocking or should-fix findings. The Vitest test that asserts rendered text is a deliberate exception that the project lead asked for.Size
About 180 changed lines: about 90 in the component, about 50 in fixtures, about 45 in tests and the story.