From bc54f711e00ff9ceafc7d93cc7ab4c43c9b2ab2f Mon Sep 17 00:00:00 2001 From: Fork Less Date: Wed, 17 Jun 2026 00:20:22 +0200 Subject: [PATCH] fix: truncate persona list output to first line (multi-line prompts were dumping full text) --- server/command.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/command.go b/server/command.go index 7772cd0..443f822 100644 --- a/server/command.go +++ b/server/command.go @@ -149,7 +149,10 @@ 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)) } b.WriteString("```\nUse /ai persona to switch.")