Files
paseo/packages/app/e2e/fixtures/claude-workflow/one-child.js
T
Mohamed BoudraandGitHub f4e8522050 Show workflows in the subagent track (#2933)
* feat(server): show provider workflows in subagent track

Normalize workflow tasks into the provider-subagent contract so shared clients need no workflow awareness. Persisted nonterminal runs replay as failed because their original runtime can no longer deliver a terminal update.

* fix(server): preserve workflow replay and tool cards

* fix(server): suppress workflow notification cards

* fix(server): replay workflow child timelines

* fix(server): fail tasks when Claude exits

* fix(server): preserve workflow replay parity

* fix(server): fail tasks on Claude restart

* fix(server): hide workflow child prompts on replay

* fix: terminalize workflows on session reload

* fix(server): own workflow notification routing

* feat(server): show workflow results in detail pane

* fix(server): preserve unrestored task notifications

* fix(server): normalize replay task notifications
2026-08-06 21:01:26 +08:00

31 lines
919 B
JavaScript

export const meta = {
name: "paseo-workflow-row-qa",
description: "Verify the workflow row lifecycle",
whenToUse: "Paseo real-provider QA only",
phases: [{ title: "Verify", detail: "one child returns a fixed marker" }],
};
phase("Verify");
let input = args;
if (typeof input === "string") input = JSON.parse(input);
const gatePath = input?.gatePath;
if (typeof gatePath !== "string" || gatePath.length === 0) {
throw new Error("gatePath is required");
}
const child = await agent(
`First use Bash to run this command and wait for it to exit:
while [ ! -f ${JSON.stringify(gatePath)} ]; do sleep 0.2; done
Then return exactly this JSON object and do nothing else: {"marker":"PASEO_WORKFLOW_ROW_OK"}`,
{
label: "workflow-row-child",
phase: "Verify",
schema: {
type: "object",
required: ["marker"],
properties: { marker: { type: "string" } },
},
},
);
return { child };