mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
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:
1 parent
38ba8cdceb
commit
cac96cd7b1
20 files changed
+630
-71
No files matched your search
@@ -1148,6 +1148,14 @@ pub(crate) enum AppEvent {
|
||||
/// Update the current approvals reviewer in the running app and widget.
|
||||
UpdateApprovalsReviewer(ApprovalsReviewer),
|
||||
|
||||
/// Discover experimental features for the requesting popup only.
|
||||
FetchExperimentalFeatures {
|
||||
thread_id: ThreadId,
|
||||
response_tx: tokio::sync::oneshot::Sender<
|
||||
Result<Vec<codex_app_server_protocol::ExperimentalFeature>, String>,
|
||||
>,
|
||||
},
|
||||
|
||||
/// Update feature flags and persist them to the top-level config.
|
||||
UpdateFeatureFlags {
|
||||
updates: Vec<(Feature, bool)>,
|
||||
|
||||
Reference in new issue
Block a user