WIP fase 2b-3: rimozione sottosistemi solo-ChatGPT (plugin remoti, image gen, daybreak, cyber, attestation, cloud config, app/connettori) - test in corso
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -150,9 +150,6 @@ pub(crate) fn key(context: &McpRuntimeContext, config: &McpServerConfig) -> Conn
|
||||
ConnectionKey {
|
||||
server_name: "test_server".to_string(),
|
||||
identity: reusable_server_identity("test_server", config, context),
|
||||
account: ConnectorRuntimeContextKey::personal(
|
||||
/*account_id*/ None, /*chatgpt_user_id*/ None,
|
||||
),
|
||||
auth_state: None,
|
||||
startup_timeout: Duration::from_secs(30),
|
||||
catalog_item_limit: 100,
|
||||
@@ -219,8 +216,6 @@ pub(crate) fn startup(
|
||||
.await?;
|
||||
let (tools, meta) = list_tools_for_client_uncached(
|
||||
"test_server",
|
||||
/*is_codex_apps_mcp_server*/ false,
|
||||
"test",
|
||||
&client.client,
|
||||
/*timeout*/ None,
|
||||
/*catalog_item_limit*/ 100,
|
||||
@@ -228,7 +223,7 @@ pub(crate) fn startup(
|
||||
)
|
||||
.await?;
|
||||
client.tool_catalog =
|
||||
Arc::new(ClientToolCatalog::new(tools, meta, /*updates*/ None));
|
||||
Arc::new(ClientToolCatalog::new(tools, meta));
|
||||
client.connection_sharing = sharing;
|
||||
Ok(client)
|
||||
}
|
||||
@@ -764,14 +759,12 @@ async fn new_chat_relists_tools_without_invalidating_or_waiting_for_existing_cal
|
||||
);
|
||||
tokio::time::timeout(
|
||||
Duration::from_secs(1),
|
||||
second.tool_catalog.refresh(
|
||||
|| async { Ok((vec![create_test_tool("test_server", "refreshed")], None, ())) },
|
||||
|_, _, ()| {},
|
||||
),
|
||||
second
|
||||
.tool_catalog
|
||||
.replace_for_test(vec![create_test_tool("test_server", "refreshed")]),
|
||||
)
|
||||
.await
|
||||
.expect("one chat's refresh must not wait for another chat's calls")
|
||||
.unwrap();
|
||||
.expect("one chat's refresh must not wait for another chat's calls");
|
||||
assert_eq!(
|
||||
first
|
||||
.tool_catalog
|
||||
|
||||
Reference in New Issue
Block a user