Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Commit ·
2383b4b
1
Parent(s): 84633b2
fix: also skip plan_tool from deterministic pruning
Browse filesResearch and plan_tool outputs are critical for task continuity
across compaction — they should never be truncated.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
agent/context_manager/manager.py
CHANGED
|
@@ -222,7 +222,7 @@ class ContextManager:
|
|
| 222 |
return False
|
| 223 |
|
| 224 |
# Tools whose outputs should never be pruned (too valuable to summarise)
|
| 225 |
-
_PRUNE_SKIP_TOOLS: set[str] = {"research"}
|
| 226 |
|
| 227 |
def prune_old_tool_outputs(self) -> None:
|
| 228 |
"""Stage 1 compaction: deterministically truncate old tool outputs.
|
|
|
|
| 222 |
return False
|
| 223 |
|
| 224 |
# Tools whose outputs should never be pruned (too valuable to summarise)
|
| 225 |
+
_PRUNE_SKIP_TOOLS: set[str] = {"research", "plan_tool"}
|
| 226 |
|
| 227 |
def prune_old_tool_outputs(self) -> None:
|
| 228 |
"""Stage 1 compaction: deterministically truncate old tool outputs.
|