Skip to content

docs(cookbook): resume-or-start by hook token recipe#2008

Open
karthikscale3 wants to merge 103 commits into
mainfrom
docs/cookbook-resume-or-start
Open

docs(cookbook): resume-or-start by hook token recipe#2008
karthikscale3 wants to merge 103 commits into
mainfrom
docs/cookbook-resume-or-start

Conversation

@karthikscale3
Copy link
Copy Markdown
Contributor

Summary

  • Add a dedicated cookbook page (Resume or start by hook token) for v4 and v5: getHookByToken / world.hooks.getByToken → reuse runId via getRun, otherwise start(), with an explicit warning about the non-atomic race before the hook is registered.
  • Wire the recipe into common-patterns meta.json, cookbook overview indexes, and docs/lib/cookbook-tree.ts for navigation.

Test plan

  • Open /cookbook/common-patterns/resume-or-start for both doc versions in the docs app and confirm sidebar + links resolve.

Made with Cursor

Drop DistributedAbortController aside; fix outside-workflow dedupe copy
(no start() idempotency key; mapping/lease vs PK-only uniqueness).

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant