Skip to content

The agent that grows with you

fix(desktop): retain interactive request correlation

yoniebans14e8f0dafa16
diff --git a/apps/desktop/src/lib/chat-messages/tool-parts.ts b/apps/desktop/src/lib/chat-messages/tool-parts.ts
index e60323b929a..2ffb90642bb 100644
--- a/apps/desktop/src/lib/chat-messages/tool-parts.ts
+++ b/apps/desktop/src/lib/chat-messages/tool-parts.ts
@@ -191,9 +191,9 @@ function findToolPartIndex(
part.result === undefined &&
part.completedAt === undefined
) {
- // A new identified start cannot replace a different identified call.
- // Only id-less placeholders may acquire an ID on a later start event.
- if (stableId && phase === 'running' && part.toolCallId && !part.toolCallId.startsWith('live-tool:')) {
+ // Interactive request IDs differ from provider call IDs and correlate by identifying arguments.
+ const requestBacked = name === 'clarify' || name === 'setup_mcp'
+ if (!requestBacked && stableId && phase === 'running' && part.toolCallId && !part.toolCallId.startsWith('live-tool:')) {
continue
}