aKode fase 2b-1: rimossi plugin remoti e share, bundle download, UI usage/crediti/banner/workspace ChatGPT; fix argomenti MCP (inviati vuoti dopo e4209e2) e overlay TUI; test analytics-upload rimossi; test sicurezza MCP adattati
Some checks failed
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled
Some checks failed
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled
This commit is contained in:
@@ -4718,11 +4718,7 @@ async fn list_all_tools_adds_server_metadata_to_tools() {
|
||||
|
||||
#[test]
|
||||
fn server_metadata_preserves_tool_approval_policy() {
|
||||
let mut config = crate::codex_apps_mcp_server_config(
|
||||
"https://docs.example",
|
||||
/*apps_mcp_product_sku*/ None,
|
||||
/*originator*/ None,
|
||||
);
|
||||
let mut config = crate::mcp::test_http_mcp_server_config("https://docs.example");
|
||||
config.environment_id = "remote".to_string();
|
||||
config.default_tools_approval_mode = Some(AppToolApproval::Prompt);
|
||||
config.tools.insert(
|
||||
@@ -4757,11 +4753,7 @@ fn hosted_actor_credentials_are_only_available_to_host_owned_mcp_servers() {
|
||||
);
|
||||
let hosted_auth = CodexAuth::Headers(AuthHeaders::new(actor_headers));
|
||||
let provider = codex_model_provider::auth_provider_from_auth(&hosted_auth);
|
||||
let mut local_config = crate::codex_apps_mcp_server_config(
|
||||
"https://chatgpt.com",
|
||||
/*apps_mcp_product_sku*/ None,
|
||||
/*originator*/ None,
|
||||
);
|
||||
let mut local_config = crate::mcp::test_http_mcp_server_config("https://chatgpt.com");
|
||||
local_config.auth = McpServerAuth::ChatGpt;
|
||||
|
||||
let local_server = EffectiveMcpServer::from_host_config(local_config.clone());
|
||||
@@ -4795,11 +4787,9 @@ fn gov_codex_apps_retain_local_chatgpt_auth_provider() -> anyhow::Result<()> {
|
||||
config.chatgpt_base_url = "https://gov.chatgpt.com/backend-api/".to_string();
|
||||
config.apps_enabled = true;
|
||||
|
||||
let local_config = crate::codex_apps_mcp_server_config(
|
||||
&config.chatgpt_base_url,
|
||||
/*apps_mcp_product_sku*/ None,
|
||||
/*originator*/ None,
|
||||
);
|
||||
let mut local_config =
|
||||
crate::mcp::test_http_mcp_server_config("https://gov.chatgpt.com/backend-api/ps/mcp");
|
||||
local_config.auth = McpServerAuth::ChatGpt;
|
||||
let mut remote_config = local_config.clone();
|
||||
remote_config.environment_id = "customer-executor".to_string();
|
||||
let mut custom_oauth = local_config.clone();
|
||||
@@ -4822,14 +4812,8 @@ fn gov_codex_apps_retain_local_chatgpt_auth_provider() -> anyhow::Result<()> {
|
||||
config.mcp_server_catalog = catalog.build();
|
||||
|
||||
let servers = crate::effective_mcp_servers(&config, Some(&auth));
|
||||
let local = &servers[CODEX_APPS_MCP_SERVER_NAME];
|
||||
assert_eq!(local.config().auth, McpServerAuth::ChatGpt);
|
||||
let retained = chatgpt_auth_provider_for_server(local, Some(Arc::clone(&provider)))
|
||||
.expect("local Gov Apps must retain ChatGPT authentication");
|
||||
assert!(
|
||||
Arc::ptr_eq(&provider, &retained),
|
||||
"server selection must preserve the supplied provider"
|
||||
);
|
||||
// aKode never connects to the ChatGPT-hosted apps MCP server.
|
||||
assert!(!servers.contains_key(CODEX_APPS_MCP_SERVER_NAME));
|
||||
|
||||
assert_eq!(servers["custom-oauth"].config().auth, McpServerAuth::OAuth);
|
||||
assert_eq!(servers["remote-gov"].config().auth, McpServerAuth::ChatGpt);
|
||||
|
||||
Reference in New Issue
Block a user