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

@@ -0,0 +1,12 @@
---
source: tui/src/chatwidget/tests/popups_and_settings.rs
expression: "render_bottom_popup(&chat, 80)"
---
Experimental features
Checked features are configured on. Some experimental features take effect
only in new tasks or after restarting the Codex server.
Loading server experiments…
Press space to select or enter to save
@@ -3,11 +3,12 @@ source: tui/src/chatwidget/tests/popups_and_settings.rs
expression: popup
---
Experimental features
Toggle experimental features. Changes are saved to config.toml.
Checked features are configured on. Some experimental features take effect
only in new tasks or after restarting the Codex server.
› [ ] JavaScript REPL Enable a persistent Node-backed JavaScript REPL for
interactive website debugging and other inline
JavaScript execution capabilities.
[x] Shell tool Allow the model to run shell commands.
Press space to select or enter to save for next conversation
Press space to select or enter to save
@@ -3,8 +3,9 @@ source: tui/src/chatwidget/tests/popups_and_settings.rs
expression: popup
---
Experimental features
Toggle experimental features. Changes are saved to config.toml.
Checked features are configured on. Some experimental features take effect
only in new tasks or after restarting the Codex server.
› [x] Shell tool Allow the model to run shell commands.
Press space to select or ctrl + x enter to save for next conversation
Press space to select or ctrl + x enter to save