mirror of
https://github.com/openai/codex.git
synced 2026-09-03 14:59:03 +00:00
codex: fix Buildkite failure on PR #31591
This commit is contained in:
@@ -27,13 +27,18 @@ impl McpServerContributor<Config> for HostedPluginRuntimeExtension {
|
||||
return vec![McpServerContribution::Remove { name }];
|
||||
}
|
||||
|
||||
let mut server_config = hosted_plugin_runtime_mcp_server_config(
|
||||
&config.chatgpt_base_url,
|
||||
config.apps_mcp_product_sku.as_deref(),
|
||||
context.originator(),
|
||||
);
|
||||
server_config.supports_parallel_tool_calls = config
|
||||
.features
|
||||
.enabled(codex_features::Feature::CodexAppsParallelToolCalls);
|
||||
|
||||
vec![McpServerContribution::Set {
|
||||
name,
|
||||
config: Box::new(hosted_plugin_runtime_mcp_server_config(
|
||||
&config.chatgpt_base_url,
|
||||
config.apps_mcp_product_sku.as_deref(),
|
||||
context.originator(),
|
||||
)),
|
||||
config: Box::new(server_config),
|
||||
}]
|
||||
})
|
||||
}
|
||||
|
||||
@@ -23,6 +23,10 @@ async fn contributes_hosted_plugin_runtime_without_an_executor() -> TestResult {
|
||||
.fallback_cwd(Some(codex_home.path().to_path_buf()))
|
||||
.cli_overrides(vec![
|
||||
("features.apps".to_string(), true.into()),
|
||||
(
|
||||
"features.codex_apps_parallel_tool_calls".to_string(),
|
||||
true.into(),
|
||||
),
|
||||
("chatgpt_base_url".to_string(), "https://chatgpt.com".into()),
|
||||
])
|
||||
.build()
|
||||
@@ -39,6 +43,7 @@ async fn contributes_hosted_plugin_runtime_without_an_executor() -> TestResult {
|
||||
panic!("hosted plugin runtime should use streamable HTTP");
|
||||
};
|
||||
assert_eq!(url, "https://chatgpt.com/backend-api/ps/mcp");
|
||||
assert!(server.supports_parallel_tool_calls);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user