core: remove duplicate config call in task tool
This commit is contained in:
parent
6538732458
commit
59a748a890
1 changed files with 1 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ export const TaskTool = Tool.define("task", async () => {
|
|||
command: z.string().describe("The command that triggered this task").optional(),
|
||||
}),
|
||||
async execute(params, ctx) {
|
||||
const config = await Config.get()
|
||||
await ctx.ask({
|
||||
permission: "task",
|
||||
patterns: [params.subagent_type],
|
||||
|
|
@ -120,7 +121,6 @@ export const TaskTool = Tool.define("task", async () => {
|
|||
using _ = defer(() => ctx.abort.removeEventListener("abort", cancel))
|
||||
const promptParts = await SessionPrompt.resolvePromptParts(params.prompt)
|
||||
|
||||
const config = await Config.get()
|
||||
const result = await SessionPrompt.prompt({
|
||||
messageID,
|
||||
sessionID: session.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue