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:
@@ -146,7 +146,7 @@ export function createOracleAgent(model: string): AgentConfig {
|
||||
const restrictions = createAgentToolRestrictions([
|
||||
"write",
|
||||
"edit",
|
||||
"task",
|
||||
"apply_patch",
|
||||
"task",
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user