Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: workflow run visibility — live agent tree, script view, per-agent transcripts #3650

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 11 commits intomain fromfeat/workflow-run-visibilityopened View on GitHub

Showing 45 changed files with 136 additions and 0 deletions (loading 42).

x
0 of 45 viewed, 45 left
56 additions and 0 deletionsapps/mobile/src/lib/threadActivity.tsModified
View file
@@ -229,14 +229,70 @@
return normalizeDraftAnswer(draft?.selectedOptionLabel);
​
+/**
+ * Task ids owned by a workflow run. Mirrors the desktop derivation in
+ * apps/web/src/workflow-logic.ts (collectWorkflowTaskIds) — mobile has no
+ * workflow card yet, so all rows for those tasks are suppressed rather than
+ * rendered as per-tick noise.
+ */
+function collectWorkflowTaskIds(
+ activities: ReadonlyArray<OrchestrationThreadActivity>,
+): Set<string> {
+ const taskIds = new Set<string>();
+ for (const activity of activities) {
+ const payload = activity.payload as Record<string, unknown> | null | undefined;
+ const taskId =
+ payload && typeof payload === "object" && typeof payload["taskId"] === "string"
+ ? payload["taskId"]
+ : undefined;
+ if (!taskId) continue;
+ const workflowName =
+ payload && typeof payload === "object" ? payload["workflowName"] : undefined;
+ const taskType = payload && typeof payload === "object" ? payload["taskType"] : undefined;
+ if (
+ activity.kind === "task.workflow-updated" ||
+ activity.kind === "task.workflow-meta" ||
+ (activity.kind === "task.started" &&
+ (taskType === "local_workflow" || typeof workflowName === "string"))
+ ) {