Skip to content

Commit f048cfa

Browse files
Claudeclaude
authored andcommitted
fix: align display output with CLI UX guidelines spec
Bold section headers in session_start (Threads, Decisions), use STATUS.pass constants instead of inline ANSI in session-close and confirm-scars, fix recall verification header color from red to yellow per spec. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2c0114b commit f048cfa

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/tools/confirm-scars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function formatResponse(
102102
lines.push(`${STATUS.ok} SCAR CONFIRMATIONS ACCEPTED`);
103103
lines.push("");
104104
for (const conf of confirmations) {
105-
const indicator = conf.decision === "APPLYING" ? `${ANSI.green}+${ANSI.reset}` : conf.decision === "N_A" ? `${ANSI.dim}-${ANSI.reset}` : `${ANSI.yellow}!${ANSI.reset}`;
105+
const indicator = conf.decision === "APPLYING" ? STATUS.pass : conf.decision === "N_A" ? `${ANSI.dim}-${ANSI.reset}` : `${ANSI.yellow}!${ANSI.reset}`;
106106
lines.push(`${indicator} **${conf.scar_title}** → ${conf.decision}`);
107107
}
108108
lines.push("");

src/tools/recall.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ No past lessons match this plan closely enough. Scars accumulate as you work —
150150

151151
// Display blocking verification requirements FIRST and prominently
152152
if (scarsWithVerification.length > 0) {
153-
lines.push(`${ANSI.red}[!!] VERIFICATION REQUIRED BEFORE PROCEEDING${ANSI.reset}`);
153+
lines.push(`${ANSI.yellow}VERIFICATION REQUIRED${ANSI.reset}`);
154154
lines.push("");
155155

156156
for (const scar of scarsWithVerification) {
@@ -167,7 +167,7 @@ No past lessons match this plan closely enough. Scars accumulate as you work —
167167
lines.push("");
168168
lines.push(`**MUST SHOW:** ${rv.must_show}`);
169169
lines.push("");
170-
lines.push(`${ANSI.red}[!!] DO NOT proceed until verification output is shown above.${ANSI.reset}`);
170+
lines.push(`${ANSI.red}Do not proceed until verification output is shown.${ANSI.reset}`);
171171
lines.push("");
172172
}
173173

src/tools/session-close.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ function formatCloseDisplay(
339339
if (r.what_worked || r.do_differently) {
340340
lines.push("");
341341
if (r.what_worked) {
342-
lines.push(`${ANSI.green}+${ANSI.reset} ${truncate(r.what_worked, 72)}`);
342+
lines.push(`${STATUS.pass} ${truncate(r.what_worked, 72)}`);
343343
}
344344
if (r.do_differently) {
345345
lines.push(`${ANSI.yellow}>${ANSI.reset} ${truncate(r.do_differently, 72)}`);

src/tools/session-start.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { setGitmemDir, getGitmemDir, getSessionPath, getConfigProject } from "..
3838
import { registerSession, findSessionByHostPid, pruneStale, migrateFromLegacy } from "../services/active-sessions.js";
3939
import * as os from "os";
4040
import { formatDate } from "../services/timezone.js";
41-
import { productLine, dimText } from "../services/display-protocol.js";
41+
import { productLine, dimText, boldText } from "../services/display-protocol.js";
4242
// Suggested threads removed from start display
4343
import type { PerformanceBreakdown, ComponentPerformance, SurfacedScar, Observation, SessionChild } from "../types/index.js";
4444
import type {
@@ -833,7 +833,7 @@ function formatStartDisplay(result: SessionStartResult, displayInfoMap?: Map<str
833833

834834
if (hasThreads) {
835835
visual.push("");
836-
visual.push(`Threads (${result.open_threads!.length})`);
836+
visual.push(boldText(`Threads (${result.open_threads!.length})`));
837837

838838
const enriched = result.open_threads!.map(t => ({
839839
thread: t,
@@ -856,7 +856,7 @@ function formatStartDisplay(result: SessionStartResult, displayInfoMap?: Map<str
856856
// Decisions section — top 3 with compact date
857857
if (hasDecisions) {
858858
visual.push("");
859-
visual.push(`Decisions (${result.recent_decisions!.length})`);
859+
visual.push(boldText(`Decisions (${result.recent_decisions!.length})`));
860860
for (const d of result.recent_decisions!.slice(0, 3)) {
861861
const title = d.title.length > 50 ? d.title.slice(0, 47) + "..." : d.title;
862862
visual.push(` ${title} · ${d.date}`);

0 commit comments

Comments
 (0)