acp: Fix history search (#36734)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2025-08-21 23:57:30 -06:00 committed by GitHub
parent e360691106
commit f4ba7997a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 228 additions and 311 deletions

View file

@ -2538,9 +2538,9 @@ impl AcpThreadView {
)
})
.when(render_history, |this| {
let recent_history = self
.history_store
.update(cx, |history_store, cx| history_store.recent_entries(3, cx));
let recent_history: Vec<_> = self.history_store.update(cx, |history_store, _| {
history_store.entries().take(3).collect()
});
this.justify_end().child(
v_flex()
.child(