Skip to content

Commit f771868

Browse files
yanmxaclaude
andcommitted
fix(render): add command arg extraction with 60-char truncation in ExtractToolArgs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Meng Yan <myan@redhat.com>
1 parent adbdecd commit f771868

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

internal/app/render/message.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,12 @@ func ExtractToolArgs(input string) string {
906906
if fp, ok := params["file_path"].(string); ok {
907907
return fp
908908
}
909+
if c, ok := params["command"].(string); ok {
910+
if len(c) > 60 {
911+
return c[:60] + "..."
912+
}
913+
return c
914+
}
909915
if p, ok := params["pattern"].(string); ok {
910916
return p
911917
}

0 commit comments

Comments
 (0)