fix(history): improve parameter display in get_tool_display_name function (#2822)

Use vim.inspect() for better parameter formatting instead of direct string concatenation
This commit is contained in:
cndoit18
2025-11-06 05:23:30 +08:00
committed by GitHub
parent 7f48770e66
commit 44b594863c

View File

@@ -398,7 +398,7 @@ function M.get_tool_display_name(message)
param = param:gsub(project_root .. "/?", "")
end)
end
if param then tool_name = native_tool_name .. "(" .. param .. ")" end
if param then tool_name = native_tool_name .. "(" .. vim.inspect(param) .. ")" end
end
---@cast tool_name string