Skip to content

fix(server-utils): Read pi-durable 1.2.0 tool results from output - #25312

Merged
andreiborza merged 2 commits into
developfrom
jp/pi-durable-1-2-tests
Oct 13, 2026
Merged

andreiborza merged 2 commits into
developfrom
jp/pi-durable-1-2-tests

Conversation

@JPeer264

@JPeer264 JPeer264 commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Note: this is now backwards compatible, we can also make it pointing to the latest version only

This fixes the pi-durable tests for pi-durable 1.2.0, and makes the SDK read tool results from the new output field. On 1.2.0, a tool call outside a tool task phase (for example, a tool that calls another tool) lost its result.

Why

pi-durable 1.2.0 (released 2026-10-12) renamed the tool result field content to output. The test tools still return { content }, so since that release all pi-durable integration tests and both (latest) e2e variants fail on develop.

Test decisions

The integration suite now installs ^1.2.0 and its tools return output. The e2e apps keep the 1.0.0 pin and the latest variant, so their tools set both fields. The alternative is to set both fields in the integration scenarios too and keep ^1.0.0.

Known issues

  • Nested calls through the new api.executeTool() of pi-durable 1.2.0 are not tested yet.

pi-durable 1.2.0 renamed the tool result field `content` to `output`. A
tool call outside a tool task phase, such as a tool that calls another
tool, now records the result from `output` and falls back to `content`
for older versions.

The integration scenarios return `output` and install `^1.2.0`. The e2e
apps run on the pinned 1.0.0 and on the latest version, so their tools
set both fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JPeer264 JPeer264 self-assigned this Oct 13, 2026
@JPeer264
JPeer264 marked this pull request as ready for review October 13, 2026 08:33
@JPeer264
JPeer264 requested a review from a team as a code owner October 13, 2026 08:33
@JPeer264
JPeer264 requested review from andreiborza, mydea and s1gr1d and removed request for a team October 13, 2026 08:33
@andreiborza
andreiborza merged commit 73e06f9 into develop Oct 13, 2026
549 of 551 checks passed
@andreiborza
andreiborza deleted the jp/pi-durable-1-2-tests branch October 13, 2026 09:01
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.

3 participants