A self-improving RLM agent for coding workflows and long-running autonomous tasks.
Rust
feat(coding-agent): style agents view titles by source (#582)
Sebastian Müllerb9755305366a
diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.mdindex 02c7f66c24..a8b5e4c600 100644--- a/packages/coding-agent/CHANGELOG.md+++ b/packages/coding-agent/CHANGELOG.md@@ -3,6 +3,7 @@## [Unreleased]- Changed large daemon session loads to stream JSONL history and avoid retaining a second full-file copy in memory.+- Changed the agents view to render explicit session names in bold and the "(no messages)" placeholder in italics.- Fixed the blank line between the recap and the working hint so they render directly above each other.- Changed subagent guidance to retain reusable children and delete completed direct children once they are no longer needed.- Changed top-level CLI help and documentation to expose autonomous mode, quality gates, and their limits.diff --git a/packages/coding-agent/src/modes/agents-view/agents-view-mode.ts b/packages/coding-agent/src/modes/agents-view/agents-view-mode.tsindex f25872ae4d..6284960408 100644--- a/packages/coding-agent/src/modes/agents-view/agents-view-mode.ts+++ b/packages/coding-agent/src/modes/agents-view/agents-view-mode.ts@@ -2334,7 +2334,7 @@ export class AgentsViewMode implements Component, Focusable {? this.getPendingDeleteTitle(): pendingKill? `${keyText("app.agents.delete")} again to stop`- : row.title;+ : styleRowTitle(row);// Append the background summary as a dim suffix on the same line, e.g.// "fix auth · Refactoring token validation". Hidden during delete/stop// confirmations so the warning text stands alone.@@ -2377,7 +2377,13 @@ export class AgentsViewMode implements Component, Focusable {if (code) {return theme.bg("toolPanelBg", padded);}- return selected ? theme.getSelectionBackgroundColor()(padded) : padded;+ if (!selected) {+ return padded;+ }+ // Truncating styled cells embeds full \x1b[0m resets; re-open the+ // selection background after each so the highlight spans the whole row.+ const applySelectionBg = theme.getSelectionBackgroundColor();+ return padded.split("\x1b[0m").map(applySelectionBg).join("\x1b[0m");}private isPendingDeleteRow(row: AgentsViewRow): boolean {@@ -2577,6 +2583,18 @@ function isRunningSessionSummary(summary: SessionSummary): boolean {return summary.activity === "working";}+// Explicit session names read bold so they stand out from fallback titles+// (first prompt, cwd, ids); the "(no messages)" placeholder reads italic.+function styleRowTitle(row: AgentsViewRow): string {+ if (row.summary.sessionName?.replace(/\s+/g, " ").trim()) {+ return theme.bold(row.title);+ }+ if (row.title === "(no messages)") {+ return theme.italic(row.title);+ }+ return row.title;+}+function formatTableCell(value: string, width: number): string {const truncated = truncateToWidth(value, width, "");return truncated + " ".repeat(Math.max(0, width - visibleWidth(truncated)));