feat(agent): update tool result compaction configuration#1867
Merged
xieyxclack merged 4 commits intoagentscope-ai:mainfrom Mar 19, 2026
Merged
feat(agent): update tool result compaction configuration#1867xieyxclack merged 4 commits intoagentscope-ai:mainfrom
xieyxclack merged 4 commits intoagentscope-ai:mainfrom
Conversation
- Replace enable_tool_result_compact and tool_result_compact_keep_n with new compaction parameters - Add tool_result_compact_recent_n, old_threshold, recent_threshold, and retention_days configuration options - Update frontend form components to reflect new compaction settings - Modify memory compaction logic to use updated threshold parameters - Update localization strings for new tool result compaction fields - Remove deprecated _MemoryMark.COMPRESSED exclusion in command handler - Allow extra fields in AgentsRunningConfig model for flexibility - Update reme-ai dependency version from 0.3.0.9 to 0.3.1.0
xieyxclack
approved these changes
Mar 19, 2026
- Removed max_input_length assignment from running_config - Removed memory_compact_threshold setting from initialization - Removed memory_compact_reserve configuration - Removed enable_tool_result_compact flag - Removed tool_result_compact_keep_n setting - Cleaned up unused memory management configurations from agent setup
xieyxclack
approved these changes
Mar 19, 2026
This was referenced Mar 20, 2026
tudan110
pushed a commit
to tudan110/QwenPaw
that referenced
this pull request
Apr 4, 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.
with new compaction parameters
and retention_days configuration options
Description
[Describe what this PR does and why]
Related Issue: Fixes #(issue_number) or Relates to #(issue_number)
Security Considerations: [If applicable, e.g. channel auth, env/config handling]
Type of Change
Component(s) Affected
Checklist
pre-commit run --all-fileslocally and it passespytestor as relevant) and they passTesting
[How to test these changes]
Local Verification Evidence
Additional Notes
[Optional: any other context]