mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
feat: langfuse 工具调用显示为嵌套结构
This commit is contained in:
@@ -1309,6 +1309,7 @@ async function checkPermissionsAndCallTool(
|
||||
output: toolResultStr,
|
||||
startTime: new Date(startTime),
|
||||
isError: false,
|
||||
parentBatchSpan: toolUseContext.langfuseBatchSpan,
|
||||
})
|
||||
|
||||
// Map the tool result to API format once and cache it. This block is reused
|
||||
@@ -1628,6 +1629,7 @@ async function checkPermissionsAndCallTool(
|
||||
output: errorMessage(error),
|
||||
startTime: new Date(startTime),
|
||||
isError: true,
|
||||
parentBatchSpan: toolUseContext.langfuseBatchSpan,
|
||||
})
|
||||
|
||||
// Handle MCP auth errors by updating the client status to 'needs-auth'
|
||||
|
||||
Reference in New Issue
Block a user