We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c88b84 + 250103d commit 08f6c5eCopy full SHA for 08f6c5e
lib/messages/prune.ts
@@ -151,6 +151,11 @@ const pruneToolInputs = (
151
if (part.tool !== 'write' && part.tool !== 'edit') {
152
continue
153
}
154
+ // Don't prune yet if tool is still pending or running
155
+ if (part.state.status === "pending" || part.state.status === "running") {
156
+ continue
157
+ }
158
+
159
if (part.state.input?.content !== undefined) {
160
part.state.input.content = PRUNED_TOOL_INPUT_REPLACEMENT
161
0 commit comments