Repository navigation
fix(harness): retain tool arguments and continuation context in summaries - #3693
Merged
jujn merged 1 commit intoOct 21, 2026
Merged
Conversation
jujn
approved these changes
Oct 21, 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 #3690. Independent PR 3/4: compaction summary input and continuation.
Summary
The summary model currently receives tool names without arguments and only a result prefix. Retain argument names and short values, preview long values separately, and include result error identity plus a marked head/tail preview. Short raw JSON is preserved verbatim.
The default prompt preserves user corrections and exact artifacts and merges earlier summaries. Both continuation variants use established-background wording; the native history lookup remains conditional on an actual session.
Evidence
pathbetween long old/new strings.After:
ConversationCompactorSummaryShapeTestchecks the middle path, both values' head/tail markers, raw-only arguments, exact short raw numbers, error identity, result tail and native/non-native continuation.mvn -B -T1 -pl agentscope-harness -am test spotless:checkpassed; 1,289 Harness tests, 0 failures/errors, 18 skipped; 2,742 Core tests, 0 failures/errors, 8 skipped.Merge Danger
Door: two-way. Reverting changes future summaries; already-created summary text remains in its existing conversation history.
Blast Radius: Compaction. Summary-model input and default extraction/continuation instructions change; existing custom prompt configuration remains supported.
Checklist
mvn spotless:apply