Fix double read panic in nav history (#22754)

This one seems to be triggered when the assistant's
`View<ContextEditor>` is leased during the call into
`NavHistory::for_each_entry`, which then tries to read it again through
the `ItemHandle` interface. Fix it by skipping entries that can't be
read in the history iteration.

Release Notes:

- N/A
This commit is contained in:
Cole Miller
2025-01-08 23:05:34 +00:00
committed by GitHub
parent ef583e6b5a
commit 1d8bd151b7
4 changed files with 25 additions and 4 deletions
+4
View File
@@ -4272,6 +4272,10 @@ impl Item for ContextEditor {
None
}
}
fn include_in_nav_history() -> bool {
false
}
}
impl SearchableItem for ContextEditor {