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 <poc@bcachefs.org>
This commit is contained in:
parent
be65399710
commit
b116b3536e
2 changed files with 4 additions and 4 deletions
|
|
@ -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)));
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue