Conversation
JPeer264
added this pull request to stack #25029
October 5, 2026 07:22
Contributor
size-limit report 📦
|
JPeer264
force-pushed
the
jp/cloudflare-skip-pi-tables
branch
from
October 5, 2026 09:44
ef92609 to
8e25d1f
Compare
JPeer264
force-pushed
the
jp/cloudflare-skip-pi-tables
branch
from
October 5, 2026 11:22
8e25d1f to
08ac2af
Compare
JPeer264
force-pushed
the
jp/cloudflare-skip-pi-tables
branch
from
October 5, 2026 12:39
08ac2af to
ecd24b7
Compare
JPeer264
marked this pull request as ready for review
October 5, 2026 12:40
JPeer264
requested review from
isaacs and
mydea
and removed request for
a team
October 5, 2026 12:40
The PiHarness of the agents SDK keeps the state of pi-durable in the SQLite database of the Durable Object, in tables with a pi_ prefix. Each statement became a db.query span, close to 200 for one run, and they buried the agent spans of the run. The tables are now treated like the cf_ tables of the agents framework: their statements start no span, and durableObjectSqlSpanAllowlist brings them back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JPeer264
force-pushed
the
jp/cloudflare-skip-pi-tables
branch
from
October 5, 2026 12:53
ecd24b7 to
5f53090
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.
The Agents SDK
PiHarness(changelog) keeps the state of pi-durable in the SQLite database of the Durable Object, in tables with thepi_prefix of its session store. Each statement became adb.queryspan: one run with one tool call had 189 of them next to its 7 agent spans, and the request that submitted the prompt had 120 more. These statements are framework bookkeeping, like the ones on thecf_tables ofagents, so they are now skipped the same way, anddurableObjectSqlSpanAllowlist: [/^pi_/]brings them back.The cost is the same as for
cf_: a user table whose name starts withpi_also loses its spans until it is on the allowlist. Names such asapi_keysorpipelinesare not affected.Before: 196 spans, after: 7 spans for the same prompt.
🤖 Generated with Claude Code