fix: resolve @file references in slash commands with subagents (#4221)

This commit is contained in:
Rafał Krzyważnia
2025-11-12 02:38:50 +01:00
committed by GitHub
parent c07d6487a8
commit 491a2adf8d
2 changed files with 51 additions and 52 deletions

View File

@@ -65,6 +65,7 @@ export const TaskTool = Tool.define("task", async () => {
ctx.abort.addEventListener("abort", () => {
SessionLock.abort(session.id)
})
const promptParts = await SessionPrompt.resolvePromptParts(params.prompt)
const result = await SessionPrompt.prompt({
messageID,
sessionID: session.id,
@@ -79,13 +80,7 @@ export const TaskTool = Tool.define("task", async () => {
task: false,
...agent.tools,
},
parts: [
{
id: Identifier.ascending("part"),
type: "text",
text: params.prompt,
},
],
parts: promptParts,
})
unsub()
let all