fix(hub): include Edit in default single-agent tools

Removing the claude_code preset dropped Edit. Unrestricted roles need it for
in-place file edits; write_file also grants Edit for restricted roles.
This commit is contained in:
2026-07-25 14:18:57 +08:00
parent a3af63c1c6
commit 2699ff3679
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -114,7 +114,7 @@ describe("runAgent", () => {
allowDangerouslySkipPermissions: true,
settingSources: [],
settings: { disableBundledSkills: true, todoFeatureEnabled: true },
tools: expect.arrayContaining(["Read", "Write", "Bash", "Glob", "Grep", "TodoWrite"]),
tools: expect.arrayContaining(["Read", "Write", "Edit", "Bash", "Glob", "Grep", "TodoWrite"]),
allowedTools: expect.arrayContaining(["TodoWrite", "mcp__cph_hub__todo_write"]),
disallowedTools: expect.arrayContaining(["Agent", "SendMessage", "Task", "TeamCreate", "ScheduleWakeup"]),
sandbox: expect.objectContaining({
@@ -151,6 +151,7 @@ describe("runAgent", () => {
expect(call?.options?.tools).toEqual([
"Read",
"Write",
"Edit",
"Bash",
"Glob",
"Grep",