From 6b68b1303995283b87a6c686e8e85db1b0e39d02 Mon Sep 17 00:00:00 2001 From: Fork Less Date: Wed, 17 Jun 2026 00:21:01 +0200 Subject: [PATCH] fix: indent multi-line persona descriptions in list output instead of truncating --- server/command.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/server/command.go b/server/command.go index 443f822..3c85a8c 100644 --- a/server/command.go +++ b/server/command.go @@ -149,11 +149,9 @@ func (p *Plugin) listPersonas() string { b.WriteString("Available personas:\n\n```\n") for _, id := range ids { desc := personaLibrary[id] - // Only show the first line — the full prompts are multi-line now. - if idx := strings.Index(desc, "\n"); idx > 0 { - desc = desc[:idx] - } - b.WriteString(fmt.Sprintf(" %-12s %s\n", id, desc)) + // Indent continuation lines so multi-line descriptions stay readable. + indented := strings.ReplaceAll(desc, "\n", "\n "+strings.Repeat(" ", 14)) + b.WriteString(fmt.Sprintf(" %-12s %s\n", id, indented)) } b.WriteString("```\nUse /ai persona to switch.") return b.String()