From 90106c134595602d3f2dafd58bcb5c4f69eeee36 Mon Sep 17 00:00:00 2001 From: Konstantin <2010097+logvik@users.noreply.github.com> Date: Wed, 18 Feb 2026 12:29:07 +0300 Subject: [PATCH] Fix agent configuration merge order At this case we will be able to override configuration from opencode.json config file. At the case, if we want to choose another model, for example, not codex. --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 71c9e39..c3106f1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -48,7 +48,7 @@ const Octto: Plugin = async ({ client, directory }) => { config: async (config) => { // Apply agent overrides from custom config (fragments already injected at plugin load) - config.agent = { ...config.agent, ...customConfig.agents }; + config.agent = { ...customConfig.agents, ...config.agent }; }, event: async ({ event }) => {