Skip to content

Commit 253d004

Browse files
committed
fix: only suppress compress nudge for completed DCP tools
1 parent 6dabbd7 commit 253d004

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/messages/inject.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ const shouldInjectCompressNudge = (
123123
const hasDcpTool = parts.some(
124124
(part) =>
125125
part.type === "tool" &&
126+
part.state.status === "completed" &&
126127
(part.tool === "compress" || part.tool === "prune" || part.tool === "distill"),
127128
)
128129
if (hasDcpTool) {

0 commit comments

Comments
 (0)