Revert "Merge pull request #1951 from edxeth/feat/custom-agents"
This reverts commit47e300b17e, reversing changes made to243ce1b7e8.
This commit is contained in:
@@ -79,56 +79,4 @@ describe("resolveSubagentExecution", () => {
|
||||
error: "network timeout",
|
||||
})
|
||||
})
|
||||
|
||||
test("uses inherited model for custom agents without explicit model", async () => {
|
||||
//#given
|
||||
const args = createBaseArgs({ subagent_type: "translator" })
|
||||
const executorCtx = createExecutorContext(async () => ({
|
||||
data: [{ name: "translator", mode: "subagent" }],
|
||||
}))
|
||||
|
||||
//#when
|
||||
const result = await resolveSubagentExecution(
|
||||
args,
|
||||
executorCtx,
|
||||
"sisyphus",
|
||||
"deep",
|
||||
"openai/gpt-5.3-codex",
|
||||
"anthropic/claude-opus-4-6",
|
||||
)
|
||||
|
||||
//#then
|
||||
expect(result.error).toBeUndefined()
|
||||
expect(result.agentToUse).toBe("translator")
|
||||
expect(result.categoryModel).toEqual({
|
||||
providerID: "openai",
|
||||
modelID: "gpt-5.3-codex",
|
||||
})
|
||||
})
|
||||
|
||||
test("uses system default model when inherited model is unavailable", async () => {
|
||||
//#given
|
||||
const args = createBaseArgs({ subagent_type: "translator" })
|
||||
const executorCtx = createExecutorContext(async () => ({
|
||||
data: [{ name: "translator", mode: "subagent" }],
|
||||
}))
|
||||
|
||||
//#when
|
||||
const result = await resolveSubagentExecution(
|
||||
args,
|
||||
executorCtx,
|
||||
"sisyphus",
|
||||
"deep",
|
||||
undefined,
|
||||
"anthropic/claude-opus-4-6",
|
||||
)
|
||||
|
||||
//#then
|
||||
expect(result.error).toBeUndefined()
|
||||
expect(result.agentToUse).toBe("translator")
|
||||
expect(result.categoryModel).toEqual({
|
||||
providerID: "anthropic",
|
||||
modelID: "claude-opus-4-6",
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user