Skip to content

Commit 3cc96fd

Browse files
committed
fix(prune): disable compress tool summary modification
1 parent 3782113 commit 3cc96fd

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lib/messages/prune.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,14 @@ const pruneToolInputs = (state: SessionState, logger: Logger, messages: WithPart
108108
if (part.type !== "tool") {
109109
continue
110110
}
111-
if (part.tool === "compress" && part.state.status === "completed") {
112-
const content = part.state.input?.content
113-
if (content && typeof content === "object" && "summary" in content) {
114-
content.summary = PRUNED_COMPRESS_SUMMARY_REPLACEMENT
115-
}
116-
continue
117-
}
111+
112+
// if (part.tool === "compress" && part.state.status === "completed") {
113+
// const content = part.state.input?.content
114+
// if (content && typeof content === "object" && "summary" in content) {
115+
// content.summary = PRUNED_COMPRESS_SUMMARY_REPLACEMENT
116+
// }
117+
// continue
118+
// }
118119

119120
if (!state.prune.tools.has(part.callID)) {
120121
continue

0 commit comments

Comments
 (0)