Repository navigation
fix(coderd/x/chatd): remove execute from readonly custom agents - #202
Conversation
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
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0eafd09677
ℹ️ 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".
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c02e5a34f5
ℹ️ 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".
Merged as a squash of head
|
A custom agent with
readonly: truekeptexecuteandprocess_output, so it could write files through a shell command. chatd cannot limit a shell command to reads, so readonly now removes both tools, and also the write tools that it already removed. The agent keepsread_file,read_skill,read_skill_file, the MCP tools allowed in subagents, and theweb_searchprovider tool.customAgentReadOnlyToolAllowedincoderd/x/chatd/fork_agent_tool_policy.gowraps the upstream explore allowlist and leaves it unchanged.TestForkAgentDefinitionToolPolicy/ReadOnlychecks that a readonly child keepsread_fileand has noexecute,process_output,write_fileoredit_files. Ifexecuteis put back through a-overlay, the test fails.TestCustomAgentToolPolicyFilterandTestForkRootAgentnow expect the readonly tool set withoutexecute.docs/fork/pstack-adapter.mddescribes the new readonly tool set and has updated source line references.Part of #4