Move memory scores to status column for consistent alignment

Individual memory nodes now show their score in the status column
after the token count, not embedded in the name. Unscored memories
have an empty status column.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-07 22:28:14 -04:00
parent c7c69a8f06
commit 1be16b9f7b

View file

@ -44,16 +44,16 @@ impl ConsciousScreen {
let mut unscored = 0usize; let mut unscored = 0usize;
for ce in ag.context.conversation.entries() { for ce in ag.context.conversation.entries() {
if let ConversationEntry::Memory { key, score, .. } = &ce.entry { if let ConversationEntry::Memory { key, score, .. } = &ce.entry {
let label = match score { let status = match score {
Some(s) => { scored += 1; format!("{} (score:{:.1})", key, s) } Some(s) => { scored += 1; format!("score: {:.2}", s) }
None => { unscored += 1; key.clone() } None => { unscored += 1; String::new() }
}; };
mem_children.push(SectionView { mem_children.push(SectionView {
name: label, name: key.clone(),
tokens: ce.tokens, tokens: ce.tokens,
content: ce.entry.message().content_text().to_string(), content: ce.entry.message().content_text().to_string(),
children: Vec::new(), children: Vec::new(),
status: String::new(), status,
}); });
} }
} }