Skip to content

Commit 14cadaf

Browse files
committed
improvement(mothership): record the wait time on a client tool wait that throws
1 parent 5c8728b commit 14cadaf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • apps/sim/lib/mothership/request/handlers

‎apps/sim/lib/mothership/request/handlers/tool.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,7 @@ async function dispatchToolExecution(
12381238
logger.error(`Client-executable ${scopeLabel}tool wait failed`, {
12391239
toolCallId,
12401240
toolName,
1241+
durationMs: Date.now() - waitStartedAt,
12411242
error: toError(err).message,
12421243
})
12431244
return errorCompletion('Tool wait failed')

0 commit comments

Comments
 (0)