[apps] Fix apps enablement condition. (#14011)

- [x] Fix apps enablement condition to check both the feature flag and
that the user is not an API key user.
This commit is contained in:
Matthew Zeng authored and GitHub committed 2026-03-09 22:25:43 -07:00
1 parent a9ae43621b
commit 566e4cee4b
18 files changed
+662 -86

No files matched your search

+7
View File
@@ -803,6 +803,13 @@ impl BottomPane {
true
}
pub(crate) fn selected_index_for_active_view(&self, view_id: &'static str) -> Option<usize> {
self.view_stack
.last()
.filter(|view| view.view_id() == Some(view_id))
.and_then(|view| view.selected_index())
}
/// Update the pending-input preview shown above the composer.
pub(crate) fn set_pending_input_preview(
&mut self,