Repository navigation
docs: map agent definition files in the chat context in the pstack adapter - #103
Conversation
@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. |
|
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 #13 and #7.
Updates
docs/fork/pstack-adapter.mdfor #83, which reports agent definition files in the chat context behindfork-agent-definitions. The page now says what forkmainat0298da5976does.GET /api/v2/chats/{chat}lists each pinned definition file incontext.resourceswith kindsubagentand its status. Anokfile also reports its name, its description, and any parse warnings. Any other status reports the reason and adds no custom type, so the reader knows where to look when a type is missing fromspawn_agent.subagentkind incontext_prompt.go, the name and warnings insubagentContextResource, the non-okrows inpinnedContextResources, the single-chat response inexp_chats.go, and theok-only filter for custom types inworkspaceAgentDefinitions. The header names0298da5976.The page doesn't describe the context popup. It shows a warning icon for a failed definition but doesn't list it yet, which is the agent definitions UI work in #75.
Validation
c43627ac25and0298da5976, feat: report agent definition files in the chat context behind fork-agent-definitions #83 and feat: add chat wake-up tables and queries #82 changedcoderd/x/chatd/context_prompt.goandcoderd/x/chatd/fork_agent_definitions.goamong the cited files. Every cited range in them is unchanged. The new cites were read at0298da5976.markdownlint-cli20.16.0 on the page: 0 errors. No em dashes, en dashes, spaced double hyphens, or semicolons in the added lines.v2.39.0-devel+190ad7b164withfork-agent-definitions, as a member, in a workspace with three files in~/.coder/agents/:4b89a417, atc43627ac25) reported no context resources.2603dc7c) reported threesubagentresources:gate-ok.mdasokwith its name and description,gate-warn.mdasokwithmissing description; unknown front-matter field "flavor" ignoredinerror, andgate-bad.mdasinvalidwithagent name "Gate_Bad" is not kebab-case.spawn_agenttypes, the same chat listedgeneral,explore,computer_use,gate-ok, andgate-warn, and notgate-bad.Some context resources failed to load, and its popup names none of the files.