Files
vercel__workflow/.changeset/pre/hook-resume-context.md
2026-09-09 14:44:37 -07:00

669 B

@workflow/world, @workflow/world-postgres, @workflow/core, @workflow/web-shared
@workflow/world @workflow/world-postgres @workflow/core @workflow/web-shared
patch patch patch patch

Hooks can carry an optional resumeContext; when present, resumeHook/resumeWebhook resume from it directly instead of fetching the full run, saving a round trip per resume. When the context also carries the run's encryptionPublicKey, the resume seals its payload (encp) directly to that key, so a default webhook resume needs neither a run read nor a run-key lookup. These two optimizations fall back independently: it fetches the full run when the context is absent, and uses symmetric encryption when no usable public key is available.