Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): workflow phases no longer vanish from the Agents panel #8952

Closedchomamateusz(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/8952/headopened View on GitHub

Showing 2 changed files with 68 additions and 0 deletions.

x
0 of 2 viewed, 2 left
45 additions and 0 deletionsapps/server/src/orchestration/Layers/ProviderRuntimeIngestion.activity.test.tsModified
View file
@@ -81,6 +81,51 @@
expect(usagePayload.usageSnapshot).toBe(true);
expect(usagePayload).not.toHaveProperty("status");
});
+​
+ it("keeps workflow phases in a dedicated snapshot a plain progress tick cannot blank", () => {
+ const taskId = RuntimeTaskId.make("coordinator-1");
+ const withPhases = {
+ ...base,
+ type: "task.progress",
+ eventId: EventId.make("evt-phases"),
+ payload: {
+ taskId,
+ description: "workflow",
+ phases: [
+ { index: 0, title: "Parallel" },
+ { index: 1, title: "Sequential" },
+ ],
+ },
+ } satisfies ProviderRuntimeEvent;
+ const plainTick = {
+ ...base,
+ type: "task.progress",
+ eventId: EventId.make("evt-plain"),
+ payload: {
+ taskId,
+ description: "workflow",
+ summary: "collecting results",
+ },
+ } satisfies ProviderRuntimeEvent;