From 776d857fd22a373f43bf0f2964eed8b4b20aee4f Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 28 Dec 2025 00:28:26 +0900 Subject: [PATCH] feat: set Sisyphus as default agent when enabled (#285) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Uses OpenCode's `default_agent` config (PR #5843) Sets Sisyphus as default when sisyphus_agent is not disabled Closes #283 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- src/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 30e8500..a6f4bca 100644 --- a/src/index.ts +++ b/src/index.ts @@ -432,9 +432,8 @@ const OhMyOpenCodePlugin: Plugin = async (ctx) => { const replacePlan = pluginConfig.sisyphus_agent?.replace_plan ?? true; if (isSisyphusEnabled && builtinAgents.Sisyphus) { - // TODO: When OpenCode releases `default_agent` config option (PR #5313), - // use `config.default_agent = "Sisyphus"` instead of demoting build/plan. - // Tracking: https://github.com/sst/opencode/pull/5313 + // Set Sisyphus as default agent (feature added in OpenCode PR #5843) + (config as { default_agent?: string }).default_agent = "Sisyphus"; const agentConfig: Record = { Sisyphus: builtinAgents.Sisyphus,