Skip to content

Pass Workflow retention through Agent.runWorkflow() so that callers can control instance retention - #1948

Draft
ericclemmons wants to merge 1 commit into
mainfrom
codex/workflow-retention-tracking
Draft

Pass Workflow retention through Agent.runWorkflow() so that callers can control instance retention#1948
ericclemmons wants to merge 1 commit into
mainfrom
codex/workflow-retention-tracking

Conversation

@ericclemmons

@ericclemmons ericclemmons commented Jul 14, 2026

Copy link
Copy Markdown
Member

tl;dr – Pass Workflow instance retention through Agent.runWorkflow().

Agent.runWorkflow() currently cannot configure the platform retention supported by Workflow.create(), so callers must choose between automatic Agent tracking and custom Workflow retention.

This adds the native, strongly typed retention option and forwards it unchanged to the underlying Workflow binding. Agent-local tracking behavior is unchanged.


References: WorkflowInstanceCreateOptions

@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 314a8b2

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

This PR includes changesets to release 2 packages
Name Type
agents Minor
@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 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

agents

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

create-think

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 314a8b2

@ericclemmons ericclemmons self-assigned this Jul 14, 2026
@ericclemmons
ericclemmons force-pushed the codex/workflow-retention-tracking branch from c5acfeb to 314a8b2 Compare July 27, 2026 22:39
@ericclemmons ericclemmons changed the title Pass Workflow retention through Agent.runWorkflow() so that tracking expiry matches instance state Pass Workflow retention through Agent.runWorkflow() so that callers can control instance retention Jul 27, 2026
@ericclemmons
ericclemmons changed the base branch from codex/workflow-tracking-retention to main July 27, 2026 22:40
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