feat(webui): link parked tasks to the page that fixes their blocker

This commit is contained in:
sam committed 2026-10-17 17:08:24 +11:00
1 parent b96e432841
commit 4e56a9a05f
24 files changed
+214 -50

No files matched your search

+3
View File
@@ -176,6 +176,9 @@ const headerActions = computed(() =>
<AlertDescription>
<p v-if="failure.detail" class="mt-0.5 font-mono text-xs break-words text-fg-muted">{{ failure.detail }}</p>
<p v-if="jumpError" class="mt-1 text-xs" role="alert">{{ jumpError }}</p>
<Button v-if="failure.parked && run.attempts?.recovery" as-child size="sm" class="mt-2">
<RouterLink :to="run.attempts.recovery.link">{{ run.attempts.recovery.label }}</RouterLink>
</Button>
</AlertDescription>
</Alert>
</div>
+2
View File
@@ -92,6 +92,8 @@ export interface AttemptsState {
outputs?: Record<string, unknown>;
/** The task whose workflow.call started this one. */
called_by?: number;
/** The page that fixes a parked task's blocker, when the viewer may act there. */
recovery?: { blocker: string; label: string; link: string };
}
/** One event off the task's stream, as much of it as this page reads. */