From b116b3536e07fd9ac3af9a82d4b5fd6751b15c93 Mon Sep 17 00:00:00 2001 From: ProofOfConcept Date: Thu, 9 Apr 2026 21:13:56 -0400 Subject: [PATCH] Widen name column on F2 conscious screen Memory node keys were running into the token count column. Bump the name column from 40 to 70 characters. Co-Authored-By: Proof of Concept --- src/user/context.rs | 4 ++-- src/user/widgets.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/user/context.rs b/src/user/context.rs index d368a26..dba3f28 100644 --- a/src/user/context.rs +++ b/src/user/context.rs @@ -110,8 +110,8 @@ impl ScreenView for ConsciousScreen { self.tree.render_sections(&context_state, &mut lines); - lines.push(Line::raw(format!(" {:23} {:>6} tokens", "────────", "──────"))); - lines.push(Line::raw(format!(" {:23} {:>6} tokens", "Total", total))); + lines.push(Line::raw(format!(" {:53} {:>6} tokens", "────────", "──────"))); + lines.push(Line::raw(format!(" {:53} {:>6} tokens", "Total", total))); } else if let Some(ref info) = app.context_info { lines.push(Line::raw(format!(" System prompt: {:>6} chars", info.system_prompt_chars))); lines.push(Line::raw(format!(" Context message: {:>6} chars", info.context_message_chars))); diff --git a/src/user/widgets.rs b/src/user/widgets.rs index 98f11fb..5148880 100644 --- a/src/user/widgets.rs +++ b/src/user/widgets.rs @@ -259,9 +259,9 @@ impl SectionTree { let name_col = format!("{}{} {}", indent, marker, section.name); let tokens_col = format!("{:>6} tokens", section.tokens); let label = if section.status.is_empty() { - format!("{:40} {}", name_col, tokens_col) + format!("{:70} {}", name_col, tokens_col) } else { - format!("{:40} {:16} {}", name_col, tokens_col, section.status) + format!("{:70} {:16} {}", name_col, tokens_col, section.status) }; let style = if selected { Style::default().fg(Color::Yellow).add_modifier(Modifier::BOLD)