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.
1 parent b95dc43 commit 063a743Copy full SHA for 063a743
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