Repository navigation
Conversation
Signed-off-by: wangshun <96341168+xixi-box@users.noreply.github.com>
xixi-box
requested review from
CodeWithKyrian,
Nyholm,
chr-hertel and
soyuka
as code owners
November 26, 2026 23:03
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.
Fixes #349
Refs #349. The typed client tried to parse a task handle as a completed tool response and rejected it because it had no content array. Add a generic request API and an opt-in Tasks facade that decodes task handles, polls their state, submits keyed input responses, and requests cancellation. Existing typed client methods retain their return types, and applications control polling and input handling.
Tests:
vendor/bin/phpunit --testdox tests/Integration/TasksTest.php.Result: Before source changes, vendor/bin/phpunit --testsuite=unit passed with 3,994 tests and 11,716 assertions.
Result: Before source changes, vendor/bin/phpunit tests/Integration/StatelessClientTest.php tests/Integration/DualEraEndpointTest.php tests/Integration/CompletionTest.php tests/Integration/HandshakeTest.php tests/Integration/HeaderAgreementTest.php passed with 43 tests and 77 assertions.
Result: Base vendor/bin/phpunit --testdox tests/Integration/TasksTest.php exited 2 with the missing content error. See OSSCOUT_BASE.log.
Result: Patched vendor/bin/phpunit --testdox tests/Integration/TasksTest.php exited 0 with 5 tests and 35 assertions. See OSSCOUT_PATCHED.log.
Result: make ci exited 0. PHP CS Fixer changed zero files, PHPStan reported no errors, and Deptrac reported zero violations. PHPUnit reported 4,443 tests, 13,741 assertions and 8 skips across unit, integration and interop.
Result: make conformance-tests exited 0 after applying the repository CI permissions to the Docker fixture directories. The server scored 80/80, the client scored 252/252, and all three client authorization extension runs passed.
Result: make conformance-draft exited 0 after the same fixture permission setup. The server scored 152/152 and the client scored 417/417.
Result: make docs-guides exited 0 and reported no issues in the strict build.
Result: php -l passed for all 13 PHP files in the patch inside Docker image php:8.2-cli-alpine using PHP 8.2.36.
Result: git diff --check passed, and the tracked Composer manifest, Node lockfile and CI workflows showed no changes.
Regression coverage:
tests/Integration/TasksTest.php.