From cc1d2628a9b588010423360f56f74f89c46f6c4c Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sat, 21 Feb 2026 07:51:20 -0800 Subject: [PATCH] Replace newlines with spaces in prompt display --- 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 aff0264..58bc93d 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 ?? "" + const prompt = (s.prompt ?? "").replace(/\n/g, " ") const status = statuses[s.branch] const icon = icons[status] const bc = branchColors[status]