fix(agents): wire useTaskSystem config flag into Sisyphus and Hephaestus
The experimental.task_system flag was defined in config but never passed through to agent creation, so the task system prompt switch was always off.
This commit is contained in:
@@ -63,7 +63,8 @@ export async function createBuiltinAgents(
|
||||
customAgentSummaries?: unknown,
|
||||
browserProvider?: BrowserAutomationProvider,
|
||||
uiSelectedModel?: string,
|
||||
disabledSkills?: Set<string>
|
||||
disabledSkills?: Set<string>,
|
||||
useTaskSystem = false
|
||||
): Promise<Record<string, AgentConfig>> {
|
||||
const connectedProviders = readConnectedProvidersCache()
|
||||
// IMPORTANT: Do NOT call OpenCode client APIs during plugin initialization.
|
||||
@@ -134,6 +135,7 @@ export async function createBuiltinAgents(
|
||||
mergedCategories,
|
||||
directory,
|
||||
userCategories: categories,
|
||||
useTaskSystem,
|
||||
})
|
||||
if (sisyphusConfig) {
|
||||
result["sisyphus"] = sisyphusConfig
|
||||
@@ -150,6 +152,7 @@ export async function createBuiltinAgents(
|
||||
availableCategories,
|
||||
mergedCategories,
|
||||
directory,
|
||||
useTaskSystem,
|
||||
})
|
||||
if (hephaestusConfig) {
|
||||
result["hephaestus"] = hephaestusConfig
|
||||
|
||||
Reference in New Issue
Block a user