fix(playback): Add spacing before code snippets

This commit is contained in:
Castor Gemini 2025-08-22 05:37:49 -05:00 committed by Jeff Carr
parent e26d8dd9b3
commit 7b65b5b237
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ func printCodeSnippet(snippet *chatpb.CodeSnippet) {
// Use the in-memory Content field directly.
code := snippet.GetContent()
language := filepath.Base(snippet.GetFilename()) // Still useful for display
fmt.Println() // Add extra line feed for spacing
fmt.Printf("┌─[ Code Snippet: %s ]──────────────────────────────────\n", language)
for _, line := range strings.Split(strings.TrimSpace(code), "\n") {
fmt.Printf("│ %s\n", line)