Skip to content

fix(showcase): flow example fixes + nested-pause (approval-in-subflow) example - #1695

Merged
os-zhuang merged 2 commits into
mainfrom
fix-showcase-task-sync-fields
Jun 10, 2026
Merged

fix(showcase): flow example fixes + nested-pause (approval-in-subflow) example#1695
os-zhuang merged 2 commits into
mainfrom
fix-showcase-task-sync-fields

Conversation

@os-zhuang

@os-zhuangos-zhuang commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Three showcase flow improvements found/driven by step-by-step browser E2E of every flow:

  1. showcase_task missing sync_status/sync_error — the resilient-sync try/catch demo writes these from its catch region but the object never declared them, so the catch failed with "no such column" and the run failed instead of demonstrating structured error handling. Verified after the fix: retries exhaust → catch flags the task → run completed with the catch step in the run log.
  2. New worked example for nested durable pause (feat(automation): nested durable pause — subflow chains (linked runs) #1693)showcase_closure_signoff (reusable approval subflow) + showcase_project_closure (on project completion, requests sign-off through the subflow, then notifies the owner with the bubbled decision).
  3. showcase_budget_approval now gates on the budget actually changing (budget != previous.budget) — it previously fired on every update of a large-budget project, colliding with any other approval flow on the same record (approvals dedupe pending requests per record).

Test plan

  • Browser E2E against the live showcase: complete a project → parent run paused at signoff (correlation: subflow:<child>) + child paused at ask_signoff → approve via /api/v1/approvals → child completes down the approve edge and bubbles: parent resumes, notify_owner runs, both runs completed
  • Studio Runs panel shows the same run paused → completed (1m wall-clock across the human approval)
  • resilient-sync re-verified green after the schema fix; budget-approval two-step chain re-verified unaffected

🤖 Generated with Claude Code

…low writes
The showcase_resilient_sync flow's try/catch demo flags push failures by
writing task.sync_status / task.sync_error from its catch region — but the
showcase_task object never declared those fields, so the catch itself failed
with "no such column: sync_status" and the whole run failed instead of
demonstrating structured error handling.
Found by step-by-step browser E2E of every showcase flow; with the fields in
place the flow now completes: push retries exhaust → catch flags the task →
run completed with the catch step in the run log.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercelBot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specReadyReadyPreview, CommentJun 10, 2026 4:31pm

Request Review

Adds the worked example for nested durable pause (linked runs, #1693):
- showcase_closure_signoff: reusable approval subflow (manager sign-off,
approve/reject branches recorded into its `decision` output)
- showcase_project_closure: on project completion, invokes the sign-off
subflow — the child suspends on its approval node, suspending the parent
at the subflow node too; the decision bubbles back up and the owner is
notified with the outcome
Also gates showcase_budget_approval on the budget actually CHANGING
(`budget != previous.budget`) — it previously fired on every update of a
large-budget project, colliding with any other approval flow on the same
record (approvals dedupe pending requests per record), which broke the new
example and was wrong on its own terms.
Verified live in the browser: complete a project → parent run paused at
`signoff` (correlation subflow:<child>) + child paused at `ask_signoff` →
approve via /api/v1/approvals → child completes down the approve edge and
bubbles: parent resumes, notify_owner runs, both runs completed; the Studio
Runs panel shows the same run transitioning paused → completed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@os-zhuangos-zhuang changed the title fix(showcase): add sync_status/sync_error fields the resilient-sync flow writesfix(showcase): flow example fixes + nested-pause (approval-in-subflow) exampleJun 10, 2026
@os-zhuang
os-zhuang merged commit f7912a6 into mainJun 10, 2026
12 checks passed
@os-zhuang
os-zhuang deleted the fix-showcase-task-sync-fields branch June 10, 2026 16:34
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@os-zhuang