Skip to content

Automatically report AgentWorkflow completion so that lifecycle tracking stays synchronized - #2007

Draft
ericclemmons wants to merge 3 commits into
mainfrom
codex/automatic-agent-workflow-lifecycle
Draft

Automatically report AgentWorkflow completion so that lifecycle tracking stays synchronized#2007
ericclemmons wants to merge 3 commits into
mainfrom
codex/automatic-agent-workflow-lifecycle

Conversation

@ericclemmons

Copy link
Copy Markdown
Member

tl;dr – Automatically report AgentWorkflow completion to its originating Agent.

An Agent that starts a Workflow should receive terminal lifecycle callbacks and tracking updates without application-level decorators or polling getWorkflowStatus().

Successful returns now durably invoke onWorkflowComplete() with the returned result. Existing explicit step.reportComplete() calls remain compatible and do not produce duplicate callbacks. Unhandled throws continue to invoke onWorkflowError() automatically.


References: Agents Workflows documentation, prior automatic error reporting

@changeset-bot

changeset-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6844dad

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
agents Patch
@cloudflare/agent-think Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 31, 2026

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@2007

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@2007

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@2007

create-think

npm i https://pkg.pr.new/create-think@2007

hono-agents

npm i https://pkg.pr.new/hono-agents@2007

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@2007

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@2007

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@2007

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@2007

commit: 6844dad

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