codex: reject in-process external auth refresh (#15106)

This commit is contained in:
Eric Traut
2026-03-21 15:14:45 -06:00
parent 9855a2269f
commit 36ba70c2bc
6 changed files with 24 additions and 249 deletions
@@ -19,7 +19,6 @@ use crate::app_server_session::status_account_display_from_auth_mode;
use codex_app_server_client::AppServerEvent;
use codex_app_server_protocol::AuthMode;
use codex_app_server_protocol::JSONRPCErrorError;
use codex_app_server_protocol::RequestId;
use codex_app_server_protocol::ServerNotification;
use codex_app_server_protocol::ServerRequest;
#[cfg(test)]
@@ -973,6 +972,7 @@ fn split_command_string(command: &str) -> Vec<String> {
}
}
#[cfg(test)]
fn app_server_web_search_action_to_core(
action: codex_app_server_protocol::WebSearchAction,
) -> Option<codex_protocol::models::WebSearchAction> {
-1
View File
@@ -438,7 +438,6 @@ where
client_name: "codex-tui".to_string(),
client_version: env!("CARGO_PKG_VERSION").to_string(),
experimental_api: true,
auto_handle_chatgpt_auth_refresh: false,
opt_out_notification_methods: Vec::new(),
channel_capacity: DEFAULT_IN_PROCESS_CHANNEL_CAPACITY,
})
@@ -922,7 +922,6 @@ mod tests {
client_name: "test".to_string(),
client_version: "test".to_string(),
experimental_api: true,
auto_handle_chatgpt_auth_refresh: false,
opt_out_notification_methods: Vec::new(),
channel_capacity: DEFAULT_IN_PROCESS_CHANNEL_CAPACITY,
})