GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): a waiting child run marks its parent task waiting (#38112) · pingdotgg/t3code@25fada9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/server/src/orchestration-v2
    • DelegatedCompletionDelivery.test.ts
    • Orchestrator.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/server/src/orchestration-v2/DelegatedCompletionDelivery.test.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/DelegatedCompletionDelivery.test.ts
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2432,6 +2432,27 @@ it.layer(Layer.merge(layerTest, ProviderContinuationRequests.layer))(
24322432
const resumed = yield* orchestrator.getThreadProjection(parentThreadId);
24332433
assert.equal(resumed.subagents.find((row) => row.id === task.id)?.status, "running");
24342434
assert.isNull(resumed.subagents.find((row) => row.id === task.id)?.result);
2435+
2436+
const started = (yield* orchestrator.getThreadProjection(child.childThreadId)).runs.find(
2437+
(run) => run.id === queued.id,
2438+
)!;
2439+
const waitingSequence = yield* eventSink.latestSequence();
2440+
yield* eventSink.write({
2441+
events: [
2442+
{
2443+
id: EventId.make("event:held-followup-waiting"),
2444+
type: "run.updated",
2445+
threadId: child.childThreadId,
2446+
runId: started.id,
2447+
occurredAt: now,
2448+
payload: { ...started, status: "waiting" },
2449+
},
2450+
],
2451+
});
2452+
yield* waitForStatus(waitingSequence, "waiting");
2453+
const waiting = yield* orchestrator.getThreadProjection(parentThreadId);
2454+
assert.equal(waiting.subagents.find((row) => row.id === task.id)?.status, "waiting");
2455+
assert.equal(waiting.nodes.find((row) => row.id === task.id)?.status, "waiting");
24352456
}),
24362457
);
24372458

Collapse file

‎apps/server/src/orchestration-v2/Orchestrator.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/Orchestrator.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15824,7 +15824,8 @@ const makeOrchestrator = Effect.fn("orchestrationV2.Orchestrator.layer")(functio
1582415824
stored.event.payload.queueHeld === true)) &&
1582515825
((stored.event.payload.delegatedTaskId !== undefined &&
1582615826
(stored.event.payload.status === "queued" ||
15827-
stored.event.payload.status === "starting")) ||
15827+
stored.event.payload.status === "starting" ||
15828+
stored.event.payload.status === "waiting")) ||
1582815829
stored.event.payload.status === "completed" ||
1582915830
stored.event.payload.status === "interrupted" ||
1583015831
stored.event.payload.status === "failed" ||

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.