Skip to content

Commit d10d044

Browse files
committed
feat(tui): tidy the welcome banner and status line
Carry the calmer transcript aesthetic through the rest of the chrome: the welcome's three-line hint blob becomes a scannable two-row shortcut grid with a single tagline, and the status line lifts the model name out of the all-dim meta string so the thing you glance at most reads as the anchor.
1 parent cf53b58 commit d10d044

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/ui-pi/app.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,10 +1656,10 @@ class StatusBar extends Container {
16561656
const bar = ctxBar(this.ctxPercent);
16571657
const ctxText = colorByThreshold(`${bar} ${this.ctxPercent}%`, this.ctxPercent);
16581658
const tokPart = this.tokRate !== undefined ? ` · ${this.tokRate} tok/s` : "";
1659-
const right = ansi.dim(
1660-
`${this.modelName} · ${this.cwdLabel} · ctx ${ctxText}${tokPart} · $${formatCost(this.cost)}`,
1661-
);
1662-
return `${throb}${statusLabel} ${right}`;
1659+
// Model name reads at default brightness as the anchor; the rest of
1660+
// the meta recedes to dim so the line is glanceable, not a wall.
1661+
const meta = ansi.dim(`${this.cwdLabel} · ctx ${ctxText}${tokPart} · $${formatCost(this.cost)}`);
1662+
return `${throb}${statusLabel} ${this.modelName} ${meta}`;
16631663
}
16641664
}
16651665

src/ui-pi/welcome.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,15 @@ export class WelcomeBanner implements Component {
6969
}
7070
this.infoRows = info;
7171

72+
const key = (k: string, label: string) => `${ansi.cyan(k)} ${ansi.dim(label)}`;
7273
this.hintRows = [
7374
"",
74-
ansi.dim("Ask me to read code, edit files, run commands, or anything in between."),
75-
ansi.dim(
76-
`${ansi.cyan("/")} commands · ${ansi.cyan("!")}shell · ${ansi.cyan("↑↓")} history · ${ansi.cyan("Tab")} complete · ${ansi.cyan("\\")}+Enter newline`,
75+
ansi.dim("Ask me to read code, edit files, or run commands — anything in between."),
76+
"",
77+
[key("/", "commands"), key("!", "shell"), key("@", "file"), key("#", "memory")].join(ansi.dim(" ")),
78+
[key("↑↓", "history"), key("⌃G", "$EDITOR"), key("\\↵", "newline"), key("⌃C", "stop · twice exits")].join(
79+
ansi.dim(" "),
7780
),
78-
ansi.dim("Ctrl-C twice to exit."),
7981
"",
8082
];
8183
}

0 commit comments

Comments
 (0)