This fixes an issue where the tool call in nested headers don't wrap correctly when the tool name is long. The tool name is now rendered without an extra trailing space, and the parameter list is rendered with the correct width calculation.
--yolo
modernize