From 2722761125de74ee0d3abe8052d6bd7fcc809d5c Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sat, 21 Feb 2026 07:53:52 -0800 Subject: [PATCH] truncate prompt display to first line only --- src/commands/list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/list.ts b/src/commands/list.ts index 58bc93d..710c27c 100644 --- a/src/commands/list.ts +++ b/src/commands/list.ts @@ -67,7 +67,7 @@ export async function action(opts: { json?: boolean }) { console.log(` ${dim}${"BRANCH".padEnd(branchWidth)} PROMPT${reset}`) for (const s of sessions) { - const prompt = (s.prompt ?? "").replace(/\n/g, " ") + const prompt = (s.prompt ?? "").split("\n")[0] const status = statuses[s.branch] const icon = icons[status] const bc = branchColors[status]