remove the need for polling from experimental background agents (#29179)

This commit is contained in:
Aiden Cline
2026-05-25 16:09:56 -05:00
committed by GitHub
parent 775321173d
commit dabf2dc013
11 changed files with 63 additions and 431 deletions

View File

@@ -235,11 +235,11 @@ describe("run entry body", () => {
},
title: "",
output: [
"task_id: child-1 (for resuming to continue this task if needed)",
"",
'<task id="child-1" state="completed">',
"<task_result>",
"# Findings\n\n- Footer stays live",
"</task_result>",
"</task>",
].join("\n"),
metadata: {
sessionId: "child-1",
@@ -265,11 +265,11 @@ describe("run entry body", () => {
},
title: "",
output: [
"task_id: child-1 (for resuming to continue this task if needed)",
"",
'<task id="child-1" state="completed">',
"<task_result>",
"",
"</task_result>",
"</task>",
].join("\n"),
metadata: {
sessionId: "child-1",

View File

@@ -938,8 +938,7 @@ test("renders promoted task markdown without a leading blank row", async () => {
subagent_type: "explore",
},
output: [
"task_id: child-1 (for resuming to continue this task if needed)",
"",
'<task id="child-1" state="completed">',
"<task_result>",
"Location: `/tmp/run.ts`",
"",
@@ -947,6 +946,7 @@ test("renders promoted task markdown without a leading blank row", async () => {
"- Local interactive mode",
"- Attach mode",
"</task_result>",
"</task>",
].join("\n"),
metadata: {
sessionId: "child-1",