Add exec-server MVP startup and surface seams

This commit is contained in:
starr-openai
2026-04-04 14:32:43 -07:00
parent 4fd5c35c4f
commit e4cc738a5c
14 changed files with 610 additions and 69 deletions

View File

@@ -860,6 +860,7 @@ fn thread_start_params_from_config(config: &Config) -> ThreadStartParams {
approvals_reviewer: approvals_reviewer_override_from_config(config),
sandbox: sandbox_mode_from_policy(config.permissions.sandbox_policy.get()),
config: config_request_overrides_from_config(config),
bundle_startup: thread_bundle_startup_from_config(config),
ephemeral: Some(config.ephemeral),
..ThreadStartParams::default()
}
@@ -886,6 +887,15 @@ fn config_request_overrides_from_config(config: &Config) -> Option<HashMap<Strin
.map(|profile| HashMap::from([("profile".to_string(), Value::String(profile.clone()))]))
}
fn thread_bundle_startup_from_config(
_config: &Config,
) -> Option<codex_app_server_protocol::ThreadBundleStartup> {
// Phase-1 sketch only: once exec-server startup learns bundle selection,
// this helper is the CLI-side seam that can source a per-thread bundle
// payload and forward it through `thread/start`.
None
}
fn approvals_reviewer_override_from_config(
config: &Config,
) -> Option<codex_app_server_protocol::ApprovalsReviewer> {