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:
@@ -17,6 +17,7 @@ export function maybeCreateAtlasConfig(input: {
|
||||
availableSkills: AvailableSkill[]
|
||||
mergedCategories: Record<string, CategoryConfig>
|
||||
userCategories?: CategoriesConfig
|
||||
useTaskSystem?: boolean
|
||||
}): AgentConfig | undefined {
|
||||
const {
|
||||
disabledAgents,
|
||||
|
||||
@@ -22,6 +22,7 @@ export function collectPendingBuiltinAgents(input: {
|
||||
uiSelectedModel?: string
|
||||
availableModels: Set<string>
|
||||
disabledSkills?: Set<string>
|
||||
useTaskSystem?: boolean
|
||||
}): { pendingAgentConfigs: Map<string, AgentConfig>; availableAgents: AvailableAgent[] } {
|
||||
const {
|
||||
agentSources,
|
||||
|
||||
@@ -19,6 +19,7 @@ export function maybeCreateHephaestusConfig(input: {
|
||||
availableCategories: AvailableCategory[]
|
||||
mergedCategories: Record<string, CategoryConfig>
|
||||
directory?: string
|
||||
useTaskSystem: boolean
|
||||
}): AgentConfig | undefined {
|
||||
const {
|
||||
disabledAgents,
|
||||
@@ -31,6 +32,7 @@ export function maybeCreateHephaestusConfig(input: {
|
||||
availableCategories,
|
||||
mergedCategories,
|
||||
directory,
|
||||
useTaskSystem,
|
||||
} = input
|
||||
|
||||
if (disabledAgents.includes("hephaestus")) return undefined
|
||||
@@ -66,7 +68,8 @@ export function maybeCreateHephaestusConfig(input: {
|
||||
availableAgents,
|
||||
undefined,
|
||||
availableSkills,
|
||||
availableCategories
|
||||
availableCategories,
|
||||
useTaskSystem
|
||||
)
|
||||
|
||||
hephaestusConfig = { ...hephaestusConfig, variant: hephaestusResolvedVariant ?? "medium" }
|
||||
|
||||
@@ -21,6 +21,7 @@ export function maybeCreateSisyphusConfig(input: {
|
||||
mergedCategories: Record<string, CategoryConfig>
|
||||
directory?: string
|
||||
userCategories?: CategoriesConfig
|
||||
useTaskSystem: boolean
|
||||
}): AgentConfig | undefined {
|
||||
const {
|
||||
disabledAgents,
|
||||
@@ -34,6 +35,7 @@ export function maybeCreateSisyphusConfig(input: {
|
||||
availableCategories,
|
||||
mergedCategories,
|
||||
directory,
|
||||
useTaskSystem,
|
||||
} = input
|
||||
|
||||
const sisyphusOverride = agentOverrides["sisyphus"]
|
||||
@@ -67,7 +69,8 @@ export function maybeCreateSisyphusConfig(input: {
|
||||
availableAgents,
|
||||
undefined,
|
||||
availableSkills,
|
||||
availableCategories
|
||||
availableCategories,
|
||||
useTaskSystem
|
||||
)
|
||||
|
||||
if (sisyphusResolvedVariant) {
|
||||
|
||||
Reference in New Issue
Block a user