fix(agents): block apply_patch tool for all read-only agents
Oracle, Librarian, Explore, Momus, and Metis could modify files via apply_patch despite being read-only agents. Also fixed duplicate task entries in Librarian and Explore restriction lists.
This commit is contained in:
@@ -28,7 +28,7 @@ export function createExploreAgent(model: string): AgentConfig {
|
||||
const restrictions = createAgentToolRestrictions([
|
||||
"write",
|
||||
"edit",
|
||||
"task",
|
||||
"apply_patch",
|
||||
"task",
|
||||
"call_omo_agent",
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user