mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
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:
1 parent
b995d06050
commit
048a936a23
18 files changed
+647
-81
No files matched your search
@@ -54,6 +54,7 @@ use crate::bottom_pane::TerminalTitleItem;
|
||||
use crate::chatwidget::ConnectorScopeGeneration;
|
||||
use crate::chatwidget::ThreadUsageOutcome;
|
||||
use crate::chatwidget::UserMessage;
|
||||
use crate::experimental_features::FeatureWriteResult;
|
||||
use crate::goal_files::GoalDraft;
|
||||
use codex_app_server_protocol::AskForApproval;
|
||||
use codex_config::types::ApprovalsReviewer;
|
||||
@@ -1171,6 +1172,13 @@ pub(crate) enum AppEvent {
|
||||
updates: Vec<(Feature, bool)>,
|
||||
},
|
||||
|
||||
/// Save generic menu controls without changing running-task settings.
|
||||
SaveExperimentalFeatures {
|
||||
thread_id: ThreadId,
|
||||
updates: Vec<(String, bool)>,
|
||||
response_tx: tokio::sync::oneshot::Sender<Result<FeatureWriteResult, String>>,
|
||||
},
|
||||
|
||||
/// Update memory settings and persist them to config.toml.
|
||||
UpdateMemorySettings {
|
||||
use_memories: bool,
|
||||
|
||||
Reference in new issue
Block a user