Skip to content

fix(pi): nest tools called through another tool under their caller - #802

Merged
thevarsek merged 1 commit into
mainfrom
agent-10/t27521
Nov 28, 2026
Merged

thevarsek merged 1 commit into
mainfrom
agent-10/t27521

Conversation

@thevarsek

@thevarsek thevarsek commented Nov 28, 2026 •

Copy link
Copy Markdown

Pi reports parentToolCallId for tools invoked through another tool, but the adapter attached those calls to the turn root. Map that field from each start, update, and end event to the existing caller node and turn-item IDs. Keep rootNodeId and top-level behavior unchanged; treat tool IDs as opaque strings.

The new adapter regression failed before the fix with the turn root in place of the caller. It covers nested and deeper calls, all phases, failure, updates before start, and top-level IDs containing slashes. All 90 adapter tests and the Pi package typecheck pass. All five requested package suites passed locally: shared (1,098), provider-pi (130), client-runtime (1,474), source-control-forgejo (51), and effect-codex-app-server (28).

check:changed was attempted: formatting and related tests passed, but lint, knip, and dependent-package checks are limited by dependencies missing from the provided filtered install. The separate preview suite finished with 143 passing tests and one PortScanner failure in this local environment. The required bench-check validates the supplied package suites and preview tests in CI.

Built by GPT-6 via Codex.

@thevarsek
thevarsek enabled auto-merge November 28, 2026 03:19
@thevarsek
thevarsek added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit f031e99 Nov 28, 2026
1 check passed
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