Persist server-advertised experimental features from the TUI (#42674)

## What changed

- Save writable `/experimental` selections through `config/batchWrite`, including features that are not known to the local client.
- Refresh configured values after writes and surface timeouts, failures, and higher-priority overrides without changing the active task's settings.
- Serialize saves and discovery, let accepted writes finish after the popup closes, and retain uncertain selections for explicit retry.

## Testing

- Cover new server feature keys, server defaults, overrides, write and readback failures, timeouts, selected config profiles, and popup retry behavior.

GitOrigin-RevId: acee4e10cbb8c2fce9211e8fadd3cd67fa0eb1a5
This commit is contained in:
Eric Traut authored and copyberry committed 2026-09-04 04:55:40 +00:00
1 parent b995d06050
commit 048a936a23
18 files changed
+647 -81

No files matched your search

+4 -5
View File
@@ -2402,11 +2402,10 @@ impl App {
}
}
AppEvent::FetchExperimentalFeatures { thread_id, response_tx } => {
crate::experimental_features::fetch(
app_server.request_handle(),
thread_id,
response_tx,
);
self.fetch_experimental_features(app_server, thread_id, response_tx);
}
AppEvent::SaveExperimentalFeatures { thread_id, updates, response_tx } => {
self.save_experimental_features(app_server, thread_id, updates, response_tx);
}
AppEvent::UpdateFeatureFlags { updates } => {
self.update_feature_flags(app_server, updates).await;