We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe7778 commit b6834b2Copy full SHA for b6834b2
1 file changed
src/tui.rs
@@ -724,7 +724,8 @@ fn compact_knowledge_desc(msg: &str) -> String {
724
return String::new();
725
};
726
// Try to extract the value name — first word or primitive name
727
- let val_name = if let Some(rest) = msg.strip_prefix("Output of ") {
+ let val_name = if let Some(idx) = msg.find("utput of ") {
728
+ let rest = &msg[idx + "utput of ".len()..];
729
rest.split('(').next().unwrap_or("?").to_string()
730
} else {
731
msg.split_whitespace().next().unwrap_or("?").to_string()
0 commit comments