thread_view: Add recent history entries & adjust empty state (#36625)

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-08-20 18:01:22 -03:00 committed by GitHub
parent 02dabbb9fa
commit fb7edbfb46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 325 additions and 149 deletions

View file

@ -345,4 +345,8 @@ impl HistoryStore {
.retain(|old_entry| old_entry != entry);
self.save_recently_opened_entries(cx);
}
pub fn recent_entries(&self, limit: usize, cx: &mut Context<Self>) -> Vec<HistoryEntry> {
self.entries(cx).into_iter().take(limit).collect()
}
}

View file

@ -27,7 +27,7 @@ impl AgentServer for NativeAgentServer {
}
fn empty_state_headline(&self) -> &'static str {
""
"Welcome to the Agent Panel"
}
fn empty_state_message(&self) -> &'static str {