Marchio: allineamento fine della rinomina (A)
Le righe che differivano dalla rinomina di aKode solo per codex/akode (header e user agent codex_cli_rs -> akode_cli_rs, nomi di file, testi di test) sono riportate come in aKode 0.9.2; dove la mappa automatica aveva rinominato troppo (stringhe di protocollo, residenza) e' ripristinato il testo originale. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -673,7 +673,7 @@ async fn mcp_namespace_instructions_are_preserved_without_hiding_tools() -> anyh
|
||||
wait_for_mcp_server(&fixture.codex, "bounded").await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(&fixture, "show the bounded MCP tools"))
|
||||
.await?;
|
||||
wait_for_event(&fixture.codex, |event| {
|
||||
@@ -756,7 +756,7 @@ async fn text_only_mcp_content_uses_content_items() -> anyhow::Result<()> {
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(&fixture, "return content items"))
|
||||
.await?;
|
||||
wait_for_event(&fixture.codex, |event| {
|
||||
@@ -889,7 +889,7 @@ async fn environment_mcp_policy_filters_runtime_config_and_model_tools(
|
||||
.await?;
|
||||
|
||||
let selection = fixture
|
||||
.akode
|
||||
.codex
|
||||
.environment_selections()
|
||||
.await
|
||||
.into_iter()
|
||||
@@ -943,7 +943,7 @@ async fn environment_mcp_policy_filters_runtime_config_and_model_tools(
|
||||
};
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.environment_ready(
|
||||
&selection,
|
||||
EnvironmentConfig {
|
||||
@@ -970,7 +970,7 @@ async fn environment_mcp_policy_filters_runtime_config_and_model_tools(
|
||||
assert!(!runtime_servers["blocked"].enabled);
|
||||
assert!(!runtime_servers["unselected"].enabled);
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.call_mcp_tool(
|
||||
"allowed",
|
||||
"echo",
|
||||
@@ -996,7 +996,7 @@ async fn environment_mcp_policy_filters_runtime_config_and_model_tools(
|
||||
assert!(responses::namespace_child_tool(&body, "mcp__blocked", "echo").is_none());
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.environment_failed(&selection, "environment policy unavailable".to_string())
|
||||
.await?;
|
||||
let (failed_config, _) = fixture.codex.current_mcp_config_and_runtime_context().await;
|
||||
@@ -1102,7 +1102,7 @@ async fn future_environment_mcp_policy_applies_on_the_next_turn() -> anyhow::Res
|
||||
};
|
||||
submit_thread_settings(&fixture.codex, settings(config.clone())).await?;
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(TurnInputRequest::user_input(vec![UserInput::Text {
|
||||
text: "pause before continuing".into(),
|
||||
text_elements: Vec::new(),
|
||||
@@ -1119,7 +1119,7 @@ async fn future_environment_mcp_policy_applies_on_the_next_turn() -> anyhow::Res
|
||||
config.mcp_policy.as_mut().unwrap().servers = Some(BTreeMap::new());
|
||||
submit_thread_settings(&fixture.codex, settings(config)).await?;
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.submit(Op::UserInputAnswer {
|
||||
id: request.turn_id,
|
||||
response: RequestUserInputResponse {
|
||||
@@ -1370,7 +1370,7 @@ async fn stdio_server_round_trip(server_name: &'static str, namespace: &str) ->
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(&fixture, "call the rmcp echo tool"))
|
||||
.await?;
|
||||
|
||||
@@ -1685,7 +1685,7 @@ async fn mcp_pagination_preserves_valid_tools_and_rejects_oversized_cursors(
|
||||
);
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(auto_approved_user_turn(
|
||||
&fixture,
|
||||
"call the paginated sync tool",
|
||||
@@ -1762,7 +1762,7 @@ async fn ready_mcp_turn_skips_pending_optional_mcp_without_cached_tools() -> any
|
||||
tokio::time::timeout(Duration::from_secs(5), async {
|
||||
loop {
|
||||
let event = fixture
|
||||
.akode
|
||||
.codex
|
||||
.next_event()
|
||||
.await
|
||||
.context("event stream ended before the calendar MCP server became ready")?;
|
||||
@@ -2148,7 +2148,7 @@ async fn interrupt_during_mcp_startup_preserves_user_input_in_history(
|
||||
.await;
|
||||
let (reply, outcome) = tokio::sync::oneshot::channel();
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.submit(Op::TurnSettings {
|
||||
turn_id,
|
||||
update: TurnSettingsUpdate {
|
||||
@@ -2170,7 +2170,7 @@ async fn interrupt_during_mcp_startup_preserves_user_input_in_history(
|
||||
.await;
|
||||
|
||||
let history = fixture
|
||||
.akode
|
||||
.codex
|
||||
.load_history(/*include_archived*/ false)
|
||||
.await?;
|
||||
let user_prompt_index = history
|
||||
@@ -2486,7 +2486,7 @@ async fn local_stdio_server_uses_runtime_fallback_cwd_when_config_omits_cwd() ->
|
||||
)
|
||||
.await;
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(
|
||||
TurnInputRequest::user_input(vec![UserInput::Text {
|
||||
text: "inspect host MCP permissions".into(),
|
||||
@@ -2678,7 +2678,7 @@ async fn stdio_mcp_tool_call_includes_sandbox_state_meta(
|
||||
};
|
||||
let owner_workspace_roots = if attachment_owned_permissions {
|
||||
let selection = fixture
|
||||
.akode
|
||||
.codex
|
||||
.environment_selections()
|
||||
.await
|
||||
.into_iter()
|
||||
@@ -2704,7 +2704,7 @@ async fn stdio_mcp_tool_call_includes_sandbox_state_meta(
|
||||
)
|
||||
.await?;
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.environment_ready(
|
||||
&selection,
|
||||
EnvironmentConfig {
|
||||
@@ -2924,7 +2924,7 @@ async fn stdio_mcp_parallel_tool_calls_default_false_runs_serially() -> anyhow::
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
// Keep this baseline on the mutable sync tool so read-only hints do not
|
||||
// make the call parallel-safe. Bypass read-only turn permissions so
|
||||
// approval behavior does not block the scheduling assertion.
|
||||
@@ -3065,7 +3065,7 @@ async fn stdio_mcp_read_only_tool_calls_run_concurrently_without_server_opt_in()
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(
|
||||
&fixture,
|
||||
"call the rmcp sync_readonly tool twice",
|
||||
@@ -3155,7 +3155,7 @@ async fn stdio_mcp_parallel_tool_calls_opt_in_runs_concurrently() -> anyhow::Res
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
// Exercise the server opt-in with the mutable sync tool rather than the
|
||||
// read-only sync_readonly tool. Bypass read-only turn permissions so
|
||||
// approval behavior does not block the scheduling assertion.
|
||||
@@ -3238,7 +3238,7 @@ async fn stdio_encrypted_content_responses_round_trip() -> anyhow::Result<()> {
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(
|
||||
&fixture,
|
||||
"call the rmcp encrypted output tool",
|
||||
@@ -3337,7 +3337,7 @@ async fn stdio_image_responses_round_trip() -> anyhow::Result<()> {
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(&fixture, "call the rmcp image tool"))
|
||||
.await?;
|
||||
|
||||
@@ -3503,7 +3503,7 @@ async fn stdio_image_responses_resize_large_image() -> anyhow::Result<()> {
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(
|
||||
&fixture,
|
||||
"call the rmcp image_scenario tool",
|
||||
@@ -3591,7 +3591,7 @@ async fn stdio_image_responses_preserve_original_detail_metadata() -> anyhow::Re
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(
|
||||
&fixture,
|
||||
"call the rmcp image_scenario tool",
|
||||
@@ -3755,7 +3755,7 @@ async fn stdio_image_responses_are_sanitized_for_text_only_model() -> anyhow::Re
|
||||
assert_eq!(models_mock.requests().len(), 1);
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn_with_model(
|
||||
&fixture,
|
||||
"call the rmcp image tool",
|
||||
@@ -3856,7 +3856,7 @@ async fn stdio_server_propagates_whitelisted_env_vars() -> anyhow::Result<()> {
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(&fixture, "call the rmcp echo tool"))
|
||||
.await?;
|
||||
|
||||
@@ -3981,7 +3981,7 @@ async fn stdio_server_propagates_explicit_local_env_var_source() -> anyhow::Resu
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(&fixture, "call the rmcp echo tool"))
|
||||
.await?;
|
||||
|
||||
@@ -4077,7 +4077,7 @@ async fn remote_stdio_env_var_source_does_not_copy_local_env() -> anyhow::Result
|
||||
wait_for_mcp_server(&fixture.codex, server_name).await?;
|
||||
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(&fixture, "call the rmcp echo tool"))
|
||||
.await?;
|
||||
|
||||
@@ -4323,7 +4323,7 @@ async fn streamable_http_tool_call_round_trip(mode: HeadersHelperMode) -> anyhow
|
||||
|
||||
// Phase 4: submit the user turn that should trigger the MCP tool call.
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(
|
||||
&fixture,
|
||||
"call the rmcp streamable http echo tool",
|
||||
@@ -4706,7 +4706,7 @@ async fn streamable_http_with_oauth_round_trip_impl() -> anyhow::Result<()> {
|
||||
.open(temp_home.path().join("mcp-oauth-locks/file-store.lock"))?;
|
||||
store_lock.try_lock()?;
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(
|
||||
&fixture,
|
||||
"continue while OAuth credentials are locked",
|
||||
@@ -4780,11 +4780,11 @@ async fn streamable_http_with_oauth_round_trip_impl() -> anyhow::Result<()> {
|
||||
.expect("test MCP servers should accept the discovered OAuth server");
|
||||
let discovered_turn = tokio::time::timeout(Duration::from_secs(5), async {
|
||||
let _ = fixture
|
||||
.akode
|
||||
.codex
|
||||
.refresh_runtime_config(current_config, refreshed_config.clone())
|
||||
.await;
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(
|
||||
&fixture,
|
||||
"continue while a newly discovered OAuth server is starting",
|
||||
@@ -4827,7 +4827,7 @@ async fn streamable_http_with_oauth_round_trip_impl() -> anyhow::Result<()> {
|
||||
);
|
||||
let current_config = fixture.codex.config().await;
|
||||
let _ = fixture
|
||||
.akode
|
||||
.codex
|
||||
.refresh_runtime_config(current_config, refreshed_config)
|
||||
.await;
|
||||
let logged_out_startup = tokio::time::timeout(
|
||||
@@ -4861,7 +4861,7 @@ async fn streamable_http_with_oauth_round_trip_impl() -> anyhow::Result<()> {
|
||||
|
||||
// Phase 6: submit the user turn that should invoke the OAuth-backed tool.
|
||||
fixture
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(read_only_user_turn(
|
||||
&fixture,
|
||||
"call the rmcp streamable http oauth echo tool",
|
||||
|
||||
Reference in New Issue
Block a user