Discover TUI experimental features from the server (#42425)

## What changed

- Load the `/experimental` catalog from the running server for the active thread, with loading, empty, and failure states in the popup.
- Show beta features in server order and preserve server-reported names, descriptions, and configured values. Mark features as read-only when the local config writer cannot safely update them.
- Persist only changed, writable feature flags. Bound discovery with page-size and page-count limits, repeated-cursor detection, deduplication, cancellation, and a timeout.

## Testing

- Cover paginated discovery, malformed or unresponsive servers, popup cancellation, read-only controls, selective writes, and the new popup states.

GitOrigin-RevId: 1f49eb961c8ab220a466e15f032c1dc61ed86d38
This commit is contained in:
Eric Traut authored and copyberry committed 2026-09-03 02:49:36 +00:00
1 parent 38ba8cdceb
commit cac96cd7b1
20 files changed
+630 -71

No files matched your search

+7
View File
@@ -2380,6 +2380,13 @@ impl App {
.add_error_message(format!("Failed to save approvals reviewer: {err}"));
}
}
AppEvent::FetchExperimentalFeatures { thread_id, response_tx } => {
crate::experimental_features::fetch(
app_server.request_handle(),
thread_id,
response_tx,
);
}
AppEvent::UpdateFeatureFlags { updates } => {
self.update_feature_flags(app_server, updates).await;
}