From 6a91d72a7213c5828a06a27b257075e104ffd72c Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Mon, 9 Feb 2026 12:00:11 +0900 Subject: [PATCH] fix(agents): remove duplicate category override application in general-agents --- src/agents/builtin-agents/general-agents.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/agents/builtin-agents/general-agents.ts b/src/agents/builtin-agents/general-agents.ts index 0c88d56b..7de6dafa 100644 --- a/src/agents/builtin-agents/general-agents.ts +++ b/src/agents/builtin-agents/general-agents.ts @@ -5,7 +5,7 @@ import type { BrowserAutomationProvider } from "../../config/schema" import type { AvailableAgent } from "../dynamic-agent-prompt-builder" import { AGENT_MODEL_REQUIREMENTS, isModelAvailable } from "../../shared" import { buildAgent, isFactory } from "../agent-builder" -import { applyCategoryOverride, applyOverrides } from "./agent-overrides" +import { applyOverrides } from "./agent-overrides" import { applyEnvironmentContext } from "./environment-context" import { applyModelResolution } from "./model-resolution" @@ -79,12 +79,6 @@ export function collectPendingBuiltinAgents(input: { config = { ...config, variant: resolvedVariant } } - // Expand override.category into concrete properties (higher priority than factory/resolved) - const overrideCategory = (override as Record | undefined)?.category as string | undefined - if (overrideCategory) { - config = applyCategoryOverride(config, overrideCategory, mergedCategories) - } - if (agentName === "librarian") { config = applyEnvironmentContext(config, directory) }