From 01b7621d3791a2c93f710ffe7fb2772556ed9818 Mon Sep 17 00:00:00 2001 From: bryanashley Date: Sun, 26 Apr 2026 20:51:12 -0700 Subject: [PATCH] Fix app-server runtime options initialization --- codex-rs/app-server/src/main.rs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/codex-rs/app-server/src/main.rs b/codex-rs/app-server/src/main.rs index 1e9d7088e8..2a4ccdc8e1 100644 --- a/codex-rs/app-server/src/main.rs +++ b/codex-rs/app-server/src/main.rs @@ -65,12 +65,18 @@ fn main() -> anyhow::Result<()> { let transport = args.listen; let session_source = args.session_source; let auth = args.auth.try_into_settings()?; - let mut runtime_options = AppServerRuntimeOptions::default(); - runtime_options.identity_key = args.identity_key.map(IdentityKey::from_os_string); #[cfg(debug_assertions)] - if args.disable_plugin_startup_tasks_for_tests { - runtime_options.plugin_startup_tasks = PluginStartupTasks::Skip; - } + let plugin_startup_tasks = if args.disable_plugin_startup_tasks_for_tests { + PluginStartupTasks::Skip + } else { + PluginStartupTasks::Start + }; + #[cfg(not(debug_assertions))] + let plugin_startup_tasks = PluginStartupTasks::Start; + let runtime_options = AppServerRuntimeOptions { + plugin_startup_tasks, + identity_key: args.identity_key.map(IdentityKey::from_os_string), + }; run_main_with_transport_options( arg0_paths,