feat(tui): optimize performance by caching display lines and token counts, and improve action handling
This commit is contained in:
@@ -37,7 +37,7 @@ pub fn render(
|
||||
)));
|
||||
} else {
|
||||
let start = if messages.len() > 8 { messages.len() - 8 } else { 0 };
|
||||
for msg in &messages[start..] {
|
||||
for msg in messages.iter().skip(start) {
|
||||
let role_str = match msg.role {
|
||||
Role::User => "User",
|
||||
Role::Assistant => "Asst",
|
||||
|
||||
Reference in New Issue
Block a user