Repository navigation
fix: preserve tool completion, hook feedback, and error states - #3803
Merged
Merged
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
4 tasks
Buktal
force-pushed
the
codex/tool-feedback
branch
from
October 28, 2026 02:49
aa8b11b to
2790074
Compare
jujn
approved these changes
Oct 28, 2026
chickenlj
added a commit
that referenced
this pull request
Nov 13, 2026
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.
AgentScope-Java Version
2.1.0-SNAPSHOT
Description
Refs #3794, tool-feedback review unit. Successful void calls can yield ambiguous empty/null feedback, PostActing block replacements can miss stored/model-visible history, and Anthropic tool-result formatting can lose explicit failure states.
Summary
void/Void,Mono<Void>, andCompletableFuture<Void>calls with(completed with no output). Conversion runs after completion; ordinary null returns, non-void empty completion, errors, and cancellation retain their contracts.PostActingEvent.setToolResultinto the resulting message unless the hook explicitly replaces that message. Cover non-streaming, streaming, and stop behavior; already emitted deltas andreturnDirectretain their contracts.is_error, preserving IDs/output blocks and the separate server-tool conversion path.Evidence
After:
ToolMethodInvokerVoidTestcovers async completion timing, converters, cancellation/errors, and non-void behavior.ReActAgentPostActingFeedbackTestcovers replacement precedence and history/stop behavior for both APIs. Anthropic converter/formatter tests cover failure states and output preservation.mvn -B -T1C clean verify, including the tool/hook/converter regressions and Spotless. The full reactor is not green: it stopped on a 10-second timeout in the unchangedWeixinChannelLoopbackTest.doesNotLoseMessageWhenCursorPersistenceInterruptsThePoll(11,091 tests recorded, 0 failures, 1 timeout, 240 skipped). No unrelated code or timeout assertions were changed. Docs tests (13/13) and validation passed; broken-links still reports 2,218 links across 326 files.my_skill->my-skillupstream fixture correction for fix(skill): block path traversal in skill materialization and disambiguate skillId #3787/fix(skill): move blocking skill reload off reactive event-loop threads #3792. The existing validation, thread checks, and cache assertions are retained.Merge Danger
Door: two-way
No state migration. Consumers inspecting the text of successful declared-void calls now receive a completion acknowledgement. Hook feedback replacements affect persisted/next-request messages; previously emitted streaming deltas are not rewritten.
Blast Radius: tools
Touches Core tool invocation/hook feedback and Anthropic client-tool result formatting. Native thinking/parallel replay in #3740 is separate.
Checklist