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
commit dabf2dc013
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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",