style: replaced ASCII ellipsis with Unicode character for improved typography
- Replaced ASCII ellipsis characters (three dots '...') with Unicode ellipsis character ('...') throughout the codebase for improved typography.
- Adjusted string truncation logic to account for single-character Unicode ellipsis instead of three-character ASCII ellipsis, reducing reserved space from 3 to 1 character in truncation calculations.
- Updated truncation offsets in multiple files (session-manager, agent, executor, footer) to preserve 2 additional characters before ellipsis due to more compact Unicode representation.
This commit is contained in:
@@ -162,7 +162,7 @@ function cleanStepText(text: string): string {
|
||||
|
||||
// Truncate if too long
|
||||
if (cleaned.length > 50) {
|
||||
cleaned = `${cleaned.slice(0, 47)}...`;
|
||||
cleaned = `${cleaned.slice(0, 49)}…`;
|
||||
}
|
||||
|
||||
return cleaned;
|
||||
|
||||
@@ -71,7 +71,7 @@ export default function (pi: HookAPI) {
|
||||
|
||||
// Run extraction with loader UI
|
||||
const result = await ctx.ui.custom<string | null>((tui, theme, done) => {
|
||||
const loader = new BorderedLoader(tui, theme, `Extracting questions using ${ctx.model!.id}...`);
|
||||
const loader = new BorderedLoader(tui, theme, `Extracting questions using ${ctx.model!.id}…`);
|
||||
loader.onAbort = () => done(null);
|
||||
|
||||
// Do the work
|
||||
|
||||
@@ -18,7 +18,7 @@ export default function (pi: HookAPI) {
|
||||
turnCount++;
|
||||
const theme = ctx.ui.theme;
|
||||
const spinner = theme.fg("accent", "●");
|
||||
const text = theme.fg("dim", ` Turn ${turnCount}...`);
|
||||
const text = theme.fg("dim", ` Turn ${turnCount}…`);
|
||||
ctx.ui.setStatus("status-demo", spinner + text);
|
||||
});
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ console.log("Continued session:", continued.sessionFile);
|
||||
const sessions = SessionManager.list(process.cwd());
|
||||
console.log(`\nFound ${sessions.length} sessions:`);
|
||||
for (const info of sessions.slice(0, 3)) {
|
||||
console.log(` ${info.id.slice(0, 8)}... - "${info.firstMessage.slice(0, 30)}..."`);
|
||||
console.log(` ${info.id.slice(0, 8)}… - "${info.firstMessage.slice(0, 30)}…"`);
|
||||
}
|
||||
|
||||
if (sessions.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user