fix(lens): retain precise tool attempt result states

This commit is contained in:
moe-berri 2026-10-06 14:09:18 -07:00
parent b908d1e078
commit a2eaafceaf

View file

@ -164,7 +164,7 @@ function toolItem(
detail.attributes["lens.content.input_status"] === "conflicting"
? "Conflicting tool arguments were recorded. Inspect the capture source spans."
: undefined;
const toolAttempt =
const toolAttempt: ConversationItem["toolAttempt"] =
detail.attributes["lens.content.execution_status"] === "not_recorded"
? {
isError: detail.attributes["lens.content.tool_result_is_error"] === "1",