fix: clean wrapped banner tagline

This commit is contained in:
Peter Steinberger
2026-01-24 01:26:17 +00:00
parent 350131b4d7
commit aabe0bed30
3 changed files with 5 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ Docs: https://docs.clawd.bot
- CLI: move auth probe errors below the table to reduce wrapping. - CLI: move auth probe errors below the table to reduce wrapping.
- CLI: prevent ANSI color bleed when table cells wrap. - CLI: prevent ANSI color bleed when table cells wrap.
- CLI: explain when auth profiles are excluded by auth.order in probe details. - CLI: explain when auth profiles are excluded by auth.order in probe details.
- CLI: drop the em dash when the banner tagline wraps to a second line.
- Linux: include env-configured user bin roots in systemd PATH and align PATH audits. (#1512) Thanks @robbyczgw-cla. - Linux: include env-configured user bin roots in systemd PATH and align PATH audits. (#1512) Thanks @robbyczgw-cla.
- TUI: render Gateway slash-command replies as system output (for example, `/context`). - TUI: render Gateway slash-command replies as system output (for example, `/context`).
- Media: preserve PNG alpha when possible; fall back to JPEG when still over size cap. (#1491) Thanks @robbyczgw-cla. - Media: preserve PNG alpha when possible; fall back to JPEG when still over size cap. (#1491) Thanks @robbyczgw-cla.

2
pnpm-lock.yaml generated
View File

@@ -304,6 +304,8 @@ importers:
extensions/imessage: {} extensions/imessage: {}
extensions/llm-task: {}
extensions/lobster: {} extensions/lobster: {}
extensions/matrix: extensions/matrix:

View File

@@ -51,14 +51,14 @@ export function formatCliBannerLine(version: string, options: BannerOptions = {}
const line1 = `${theme.heading(title)} ${theme.info(version)} ${theme.muted( const line1 = `${theme.heading(title)} ${theme.info(version)} ${theme.muted(
`(${commitLabel})`, `(${commitLabel})`,
)}`; )}`;
const line2 = `${" ".repeat(prefix.length)}${theme.muted("—")} ${theme.accentDim(tagline)}`; const line2 = `${" ".repeat(prefix.length)}${theme.accentDim(tagline)}`;
return `${line1}\n${line2}`; return `${line1}\n${line2}`;
} }
if (fitsOnOneLine) { if (fitsOnOneLine) {
return plainFullLine; return plainFullLine;
} }
const line1 = `${title} ${version} (${commitLabel})`; const line1 = `${title} ${version} (${commitLabel})`;
const line2 = `${" ".repeat(prefix.length)}${tagline}`; const line2 = `${" ".repeat(prefix.length)}${tagline}`;
return `${line1}\n${line2}`; return `${line1}\n${line2}`;
} }