Conversation
JPeer264
added this pull request to stack #25004
October 3, 2026 16:26
Contributor
size-limit report 📦
|
JPeer264
force-pushed
the
jp/pi-durable-cloudflare-e2e
branch
from
October 5, 2026 07:20
259167d to
e5c842b
Compare
JPeer264
removed this pull request from stack #25004
October 5, 2026 07:21
JPeer264
changed the base branch from
jp/pi-durable-e2e
to
jp/cloudflare-skip-pi-tables
October 5, 2026 07:22
JPeer264
added this pull request to stack #25029
October 5, 2026 07:22
JPeer264
force-pushed
the
jp/pi-durable-cloudflare-e2e
branch
2 times, most recently
from
October 5, 2026 11:22
8bfd4a7 to
a095187
Compare
JPeer264
force-pushed
the
jp/pi-durable-cloudflare-e2e
branch
from
October 5, 2026 12:39
a095187 to
ae5a2f8
Compare
JPeer264
force-pushed
the
jp/pi-durable-cloudflare-e2e
branch
from
October 5, 2026 12:46
ae5a2f8 to
bf50db6
Compare
JPeer264
marked this pull request as ready for review
October 5, 2026 12:47
Runs pi-durable in a Durable Object through the PiHarness of the Cloudflare Agents SDK, with @sentry/cloudflare/vite as the only Sentry setup. The tests check the run trace with its chat, execute_tool and provider spans, a throwing tool, and a run that resumes in a new trace after the Durable Object resets during a tool call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JPeer264
force-pushed
the
jp/pi-durable-cloudflare-e2e
branch
from
October 5, 2026 12:53
bf50db6 to
0059f6c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cloudflare now hosts pi-durable in Durable Objects through the Agents SDK
PiHarness(changelog). This app runs pi-durable that way, with@sentry/cloudflare/viteas the only Sentry setup. It checks that a prompt becomes aninvoke_agenttrace withchat,execute_tooland providerhttp.clientspans, that a throwing tool is reported on its span, and that a run resumes in a new trace after the Durable Object resets during a tool call. The reset usesctx.abort(), which drops the object like an eviction; the next request starts it again, andPiHarnessresumes pi from its SQLite state.Like
node-pi-durableandcloudflare-think, it calls a real model through OpenRouter, so it is optional. The changelog example uses Workers AI (createAI({ binding: env.AI })), but the AI binding needs a Cloudflare account even in local dev, so that path has a unit test in #24993 instead.This app found a bug that #24993 now fixes:
@sentry/cloudflareinitializes the SDK inside each request, so the client is on the scope of that request only. The task phases ran on a copy of the default scope, had no client, and dropped every pi-durable span and error.🤖 Generated with Claude Code