diff --git a/src/core/task/Task.ts b/src/core/task/Task.ts index 9d57912040..104cb87206 100644 --- a/src/core/task/Task.ts +++ b/src/core/task/Task.ts @@ -1123,6 +1123,10 @@ export class Task extends EventEmitter implements TaskLike { role: "user", content: [{ type: "text", text: `[new_task completed] Result: ${lastMessage}` }], }) + + // Set skipPrevResponseIdOnce to ensure the next API call sends the full conversation + // including the subtask result, not just from before the subtask was created + this.skipPrevResponseIdOnce = true } catch (error) { this.providerRef .deref()