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:
@@ -33,7 +33,7 @@ impl LocalAgentRuntime {
|
||||
};
|
||||
if !matches!(
|
||||
(namespace.as_str(), name.as_str()),
|
||||
("codex_app" | "akode_tui", "send_message_to_thread")
|
||||
("codex_app" | "codex_tui", "send_message_to_thread")
|
||||
| ("codex_app", "create_thread")
|
||||
| ("cloud_threads", "send_message")
|
||||
) {
|
||||
|
||||
@@ -186,7 +186,7 @@ async fn apply_role_preserves_unspecified_keys() {
|
||||
TomlValue::String("base-model".to_string()),
|
||||
)])
|
||||
.await;
|
||||
config.codex_linux_sandbox_exe = Some(PathBuf::from("/tmp/codex-linux-sandbox"));
|
||||
config.codex_linux_sandbox_exe = Some(PathBuf::from("/tmp/akode-linux-sandbox"));
|
||||
let role_path = write_role_config(
|
||||
&home,
|
||||
"instructions-only.toml",
|
||||
@@ -221,7 +221,7 @@ async fn apply_role_preserves_unspecified_keys() {
|
||||
);
|
||||
assert_eq!(
|
||||
config.codex_linux_sandbox_exe,
|
||||
Some(PathBuf::from("/tmp/codex-linux-sandbox"))
|
||||
Some(PathBuf::from("/tmp/akode-linux-sandbox"))
|
||||
);
|
||||
assert_eq!(config.base_instructions, base_instructions);
|
||||
assert_eq!(config.base_instructions_provenance, provenance);
|
||||
|
||||
@@ -1002,7 +1002,7 @@ pub struct Config {
|
||||
/// Preferred store for MCP OAuth credentials.
|
||||
/// keyring: Use an OS-specific keyring service.
|
||||
/// Credentials stored in the keyring will only be readable by aKode unless the user explicitly grants access via OS-level keyring access.
|
||||
/// https://github.com/openai/akode/blob/main/akode-rs/rmcp-client/src/oauth.rs#L2
|
||||
/// https://github.com/openai/codex/blob/main/akode-rs/rmcp-client/src/oauth.rs#L2
|
||||
/// file: AKODE_HOME/.credentials.json
|
||||
/// This file will be readable to aKode and other applications running as the same user.
|
||||
/// auto (default): keyring if available, otherwise file.
|
||||
|
||||
@@ -32,16 +32,16 @@ fn active_arg0_helper_dir_selects_only_the_first_session_alias_directory() -> an
|
||||
.path()
|
||||
.join("tmp")
|
||||
.join(format!("arg0-{foreign_os}"))
|
||||
.join("codex-arg0-foreign");
|
||||
.join("akode-arg0-foreign");
|
||||
for arg0_root in [&platform_root, &legacy_root] {
|
||||
let active = arg0_root.join("codex-arg0-active");
|
||||
let active = arg0_root.join("akode-arg0-active");
|
||||
let paths = std::env::join_paths([
|
||||
home.path().join("bin"),
|
||||
foreign_alias.clone(),
|
||||
arg0_root.clone(),
|
||||
arg0_root.join("unrelated"),
|
||||
active.clone(),
|
||||
arg0_root.join("codex-arg0-parent"),
|
||||
arg0_root.join("akode-arg0-parent"),
|
||||
])?;
|
||||
assert_eq!(
|
||||
active_arg0_helper_dir(home.path(), &paths),
|
||||
|
||||
@@ -1131,7 +1131,7 @@ async fn build_guardian_prompt_items_explains_network_access_review_scope() -> a
|
||||
settings.set_prepend_module_to_snapshot(false);
|
||||
settings.bind(|| {
|
||||
assert_snapshot!(
|
||||
"codex_core__guardian__tests__network_access_guardian_prompt_layout",
|
||||
"akode_core__guardian__tests__network_access_guardian_prompt_layout",
|
||||
normalize_guardian_snapshot_paths(text)
|
||||
);
|
||||
});
|
||||
@@ -1844,7 +1844,7 @@ async fn guardian_review_request_layout_matches_model_visible_request_snapshot()
|
||||
settings.set_prepend_module_to_snapshot(false);
|
||||
settings.bind(|| {
|
||||
assert_snapshot!(
|
||||
"codex_core__guardian__tests__guardian_review_request_layout",
|
||||
"akode_core__guardian__tests__guardian_review_request_layout",
|
||||
normalize_guardian_snapshot_paths(format_guardian_requests_snapshot(
|
||||
"Guardian review request layout",
|
||||
&[("Guardian Review Request", &request)],
|
||||
@@ -2297,7 +2297,7 @@ async fn guardian_reuses_prompt_cache_key_and_appends_prior_reviews() -> anyhow:
|
||||
settings.set_prepend_module_to_snapshot(false);
|
||||
settings.bind(|| {
|
||||
assert_snapshot!(
|
||||
"codex_core__guardian__tests__guardian_followup_review_request_layout",
|
||||
"akode_core__guardian__tests__guardian_followup_review_request_layout",
|
||||
format!(
|
||||
"{}\n\nshared_prompt_cache_key: {}\nfollowup_contains_first_rationale: {}",
|
||||
normalize_guardian_snapshot_paths(format_guardian_requests_snapshot(
|
||||
|
||||
@@ -4083,7 +4083,7 @@ async fn fork_startup_context_then_first_turn_diff_snapshot() -> anyhow::Result<
|
||||
.expect("rollout path");
|
||||
|
||||
initial
|
||||
.akode
|
||||
.codex
|
||||
.start_or_steer_turn(ExternalTurnInputRequest::user_input(vec![
|
||||
UserInput::Text {
|
||||
text: "fork seed".into(),
|
||||
@@ -4096,7 +4096,7 @@ async fn fork_startup_context_then_first_turn_diff_snapshot() -> anyhow::Result<
|
||||
// before snapshotting from it.
|
||||
initial.codex.ensure_rollout_materialized().await;
|
||||
initial
|
||||
.akode
|
||||
.codex
|
||||
.flush_rollout()
|
||||
.await
|
||||
.expect("source rollout should flush before fork");
|
||||
@@ -4149,7 +4149,7 @@ async fn fork_startup_context_then_first_turn_diff_snapshot() -> anyhow::Result<
|
||||
settings.set_prepend_module_to_snapshot(false);
|
||||
settings.bind(|| {
|
||||
insta::assert_snapshot!(
|
||||
"codex_core__codex_tests__fork_startup_context_then_first_turn_diff",
|
||||
"akode_core__codex_tests__fork_startup_context_then_first_turn_diff",
|
||||
snapshot
|
||||
);
|
||||
});
|
||||
|
||||
@@ -133,9 +133,9 @@ fn env_overlay_for_exec_server_keeps_runtime_changes_only() {
|
||||
fn exec_env_policy_excludes_non_inheritable_and_runtime_variables() {
|
||||
let policy = ShellEnvironmentPolicy {
|
||||
r#set: HashMap::from([
|
||||
("codex_version".to_string(), "stale-version".to_string()),
|
||||
("akode_version".to_string(), "stale-version".to_string()),
|
||||
(
|
||||
"codex_permission_profile".to_string(),
|
||||
"akode_permission_profile".to_string(),
|
||||
"stale-profile".to_string(),
|
||||
),
|
||||
(
|
||||
@@ -143,7 +143,7 @@ fn exec_env_policy_excludes_non_inheritable_and_runtime_variables() {
|
||||
"/run/identity-token".to_string(),
|
||||
),
|
||||
(
|
||||
"codex_apply_patch_preserve_line_endings".to_string(),
|
||||
"akode_apply_patch_preserve_line_endings".to_string(),
|
||||
"1".to_string(),
|
||||
),
|
||||
("KEEP".to_string(), "value".to_string()),
|
||||
|
||||
Reference in New Issue
Block a user