diff --git a/src/features/task-toast-manager/manager.test.ts b/src/features/task-toast-manager/manager.test.ts index 7889c3c8c..ec4ae8250 100644 --- a/src/features/task-toast-manager/manager.test.ts +++ b/src/features/task-toast-manager/manager.test.ts @@ -30,7 +30,7 @@ describe("TaskToastManager", () => { const task = { id: "task_1", description: "Test task", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", isBackground: true, skills: ["playwright", "git-master"], } @@ -127,7 +127,7 @@ describe("TaskToastManager", () => { const task = { id: "task_1", description: "Full info task", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", isBackground: true, skills: ["frontend-ui-ux"], } @@ -149,7 +149,7 @@ describe("TaskToastManager", () => { const task = { id: "task_1", description: "Task with category default model", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", isBackground: false, modelInfo: { model: "google/gemini-3-pro-preview", type: "category-default" as const }, } @@ -169,7 +169,7 @@ describe("TaskToastManager", () => { const task = { id: "task_1b", description: "Task with system default model", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", isBackground: false, modelInfo: { model: "anthropic/claude-sonnet-4-5", type: "system-default" as const }, } @@ -190,7 +190,7 @@ describe("TaskToastManager", () => { const task = { id: "task_2", description: "Task with inherited model", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", isBackground: false, modelInfo: { model: "cliproxy/claude-opus-4-5", type: "inherited" as const }, } @@ -211,7 +211,7 @@ describe("TaskToastManager", () => { const task = { id: "task_3", description: "Task with user model", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", isBackground: false, modelInfo: { model: "my-provider/my-model", type: "user-defined" as const }, } diff --git a/src/shared/agent-tool-restrictions.ts b/src/shared/agent-tool-restrictions.ts index 9d23ab492..dc37fc2d4 100644 --- a/src/shared/agent-tool-restrictions.ts +++ b/src/shared/agent-tool-restrictions.ts @@ -30,7 +30,7 @@ const AGENT_RESTRICTIONS: Record> = { read: true, }, - "Sisyphus-Junior": { + "sisyphus-junior": { task: false, delegate_task: false, }, diff --git a/src/tools/delegate-task/tools.test.ts b/src/tools/delegate-task/tools.test.ts index 35d712280..96ea33cbe 100644 --- a/src/tools/delegate-task/tools.test.ts +++ b/src/tools/delegate-task/tools.test.ts @@ -288,7 +288,7 @@ describe("sisyphus-task", () => { id: "task-variant", sessionID: "session-variant", description: "Variant task", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", status: "running", } }, @@ -351,7 +351,7 @@ describe("sisyphus-task", () => { id: "task-default-variant", sessionID: "session-default-variant", description: "Default variant task", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", status: "running", } }, @@ -951,7 +951,7 @@ describe("sisyphus-task", () => { id: "task-unstable", sessionID: "ses_unstable_gemini", description: "Unstable gemini task", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", status: "running", } }, @@ -1016,7 +1016,7 @@ describe("sisyphus-task", () => { id: "task-normal-bg", sessionID: "ses_normal_bg", description: "Normal background task", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", status: "running", } }, @@ -1135,7 +1135,7 @@ describe("sisyphus-task", () => { id: "task-artistry", sessionID: "ses_artistry_gemini", description: "Artistry gemini task", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", status: "running", } }, @@ -1200,7 +1200,7 @@ describe("sisyphus-task", () => { id: "task-writing", sessionID: "ses_writing_gemini", description: "Writing gemini task", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", status: "running", } }, @@ -1265,7 +1265,7 @@ describe("sisyphus-task", () => { id: "task-custom-unstable", sessionID: "ses_custom_unstable", description: "Custom unstable task", - agent: "Sisyphus-Junior", + agent: "sisyphus-junior", status: "running", } }, diff --git a/src/tools/delegate-task/tools.ts b/src/tools/delegate-task/tools.ts index 9c3bed2c5..1528b973c 100644 --- a/src/tools/delegate-task/tools.ts +++ b/src/tools/delegate-task/tools.ts @@ -18,7 +18,7 @@ import { CATEGORY_MODEL_REQUIREMENTS } from "../../shared/model-requirements" type OpencodeClient = PluginInput["client"] -const SISYPHUS_JUNIOR_AGENT = "Sisyphus-Junior" +const SISYPHUS_JUNIOR_AGENT = "sisyphus-junior" function parseModelString(model: string): { providerID: string; modelID: string } | undefined { const parts = model.split("/")