aKode: rebranding visibile (nome aKode, v0.1.0, fantasmino nell'intestazione, logo AKODE ANSI Shadow con benvenuto, attribuzione open-bot-avatar in NOTICE)
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

Testi verso il modello e istruzioni di sistema invariati. Nomi interni
(crate, binario codex, ~/.codex, CODEX_*) invariati fino alla fase 5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 17:22:17 +01:00
parent c7e72370e9
commit 9e33707b8e
443 changed files with 1733 additions and 2573 deletions

View File

@@ -15,7 +15,7 @@ use owo_colors::OwoColorize;
#[derive(Debug, Parser)]
#[command(name = "codex-state-logs")]
#[command(about = "Tail Codex logs from the dedicated logs SQLite DB with simple filters")]
#[command(about = "Tail aKode logs from the dedicated logs SQLite DB with simple filters")]
struct Args {
/// Path to CODEX_HOME. Defaults to $CODEX_HOME or ~/.codex.
#[arg(long, env = "CODEX_HOME")]

View File

@@ -648,7 +648,7 @@ async fn load_config(
.await?
.build()
.await
.context("failed to load Codex config")?;
.context("failed to load aKode config")?;
config.config_layer_stack.ensure_config_server_applied()?;
Ok(config)
}
@@ -967,7 +967,7 @@ fn installation_check(show_details: bool) -> DoctorCheck {
status = status.max(CheckStatus::Warning);
summary = "npm-managed launch is missing package-root provenance".to_string();
remediation = Some(
"Reinstall or update Codex so the JS shim provides CODEX_MANAGED_PACKAGE_ROOT."
"Reinstall or update aKode so the JS shim provides CODEX_MANAGED_PACKAGE_ROOT."
.to_string(),
);
}
@@ -1302,7 +1302,7 @@ fn auth_check(config: &Config) -> DoctorCheck {
"auth.credentials",
"auth",
CheckStatus::Fail,
"no Codex credentials were found",
"no aKode credentials were found",
)
.details(details)
.remediation(

View File

@@ -144,7 +144,7 @@ fn enforcement_check(gatekeeper: Evidence, events: Evidence) -> DoctorCheck {
(
CheckStatus::Fail,
"macos XProtect blocked or remediated the desktop application",
"collect the XProtect detection and ask your security administrator to review the official Codex installation",
"collect the XProtect detection and ask your security administrator to review the official aKode installation",
)
} else if gatekeeper == Evidence::Blocked {
(
@@ -162,7 +162,7 @@ fn enforcement_check(gatekeeper: Evidence, events: Evidence) -> DoctorCheck {
(
CheckStatus::Warning,
"macos system-policy diagnostics indicate file descriptor exhaustion",
"restart your Mac, retry Codex once, and contact support if the problem returns",
"restart your Mac, retry aKode once, and contact support if the problem returns",
)
} else if events == Evidence::Audit {
(

View File

@@ -199,15 +199,15 @@ fn classify(channels: &[Option<Vec<Evidence>>]) -> DoctorCheck {
}
let summary = match (status, visible) {
(CheckStatus::Ok, _) if channels.contains(&None) => "security event coverage is incomplete",
(CheckStatus::Ok, _) => "no locally visible recent Codex security enforcement was found",
(CheckStatus::Ok, _) => "no locally visible recent aKode security enforcement was found",
(CheckStatus::Warning, false) => "security event channels could not be inspected",
(CheckStatus::Warning, true) => "recent Codex security audit or detection requires review",
(CheckStatus::Fail, _) => "endpoint security blocked or quarantined a Codex executable",
(CheckStatus::Warning, true) => "recent aKode security audit or detection requires review",
(CheckStatus::Fail, _) => "endpoint security blocked or quarantined an aKode executable",
};
let mut check = desktop_check("desktop.security.enforcement", status, summary).details(details);
if status != CheckStatus::Ok {
check = check.remediation(
"ask your organization's security administrator to review endpoint security events and the approved Codex application policy",
"ask your organization's security administrator to review endpoint security events and the approved aKode application policy",
);
}
check

View File

@@ -108,7 +108,7 @@ pub(super) async fn check(config: &Config) -> DoctorCheck {
Err(_) => {
check.status = CheckStatus::Warning;
check.summary =
"filesystem path probes unavailable: cannot locate Codex executable"
"filesystem path probes unavailable: cannot locate aKode executable"
.to_string();
return check;
}

View File

@@ -74,7 +74,7 @@ fn git_check_from_inputs(inputs: GitCheckInputs) -> DoctorCheck {
"Git repository detected but git executable was not found",
)
.expected("git available on PATH")
.remedy("Install Git or fix PATH so Codex can inspect repository metadata.")
.remedy("Install Git or fix PATH so aKode can inspect repository metadata.")
.field("selected git"),
);
}

View File

@@ -76,7 +76,7 @@ pub(super) async fn checks(
}
#[cfg(any(target_os = "macos", test))]
pub(super) const SYSTEM_PROXY_REMEDIATION: &str = "A macOS system proxy is configured but unused. If your organization requires it, ask your administrator whether to enable the experimental System proxy setting in `/experimental` or with `codex features enable respect_system_proxy`. Restart Codex after changing this setting.";
pub(super) const SYSTEM_PROXY_REMEDIATION: &str = "A macOS system proxy is configured but unused. If your organization requires it, ask your administrator whether to enable the experimental System proxy setting in `/experimental` or with `codex features enable respect_system_proxy`. Restart aKode after changing this setting.";
pub(super) fn check(config: Option<&Config>) -> DoctorCheck {
let mut details = Vec::new();

View File

@@ -79,7 +79,7 @@ pub(super) fn render_human_report(report: &DoctorReport, options: HumanOutputOpt
let _ = writeln!(
out,
"{} {}",
bold("Codex Doctor", options),
bold("aKode Doctor", options),
dim(&header_suffix(report), options)
);
out.push('\n');
@@ -1354,7 +1354,7 @@ mod tests {
let rendered = render_human_report(&sample_report(), detailed_no_color_unicode_options());
let expected = format!(
"\
Codex Doctor v0.0.0
aKode Doctor v0.0.0
Notes
⚠ terminal narrow terminal
@@ -1498,7 +1498,7 @@ Background Server
let rendered = render_human_report(&sample_report(), summary_no_color_unicode_options());
let expected = format!(
"\
Codex Doctor v0.0.0
aKode Doctor v0.0.0
Notes
⚠ terminal narrow terminal
@@ -1606,7 +1606,7 @@ Run codex doctor without --summary for detailed diagnostics.
);
let expected = format!(
"\
Codex Doctor v0.0.0
aKode Doctor v0.0.0
Notes
[!!] terminal narrow terminal

View File

@@ -99,7 +99,7 @@ pub(super) fn search_check() -> DoctorCheck {
};
let mut check = DoctorCheck::new("runtime.search", "search", status, summary).details(details);
if status != CheckStatus::Ok {
check = check.remediation("Install ripgrep or repair the bundled Codex package.");
check = check.remediation("Install ripgrep or repair the bundled aKode package.");
}
check
}

View File

@@ -279,7 +279,7 @@ pub(super) fn sandbox_check(config: &Config, arg0_paths: &Arg0DispatchPaths) ->
| SetupErrorCode::OrchestratorHelperReportReadFailed
| SetupErrorCode::OrchestratorHelperIncomplete
| SetupErrorCode::HelperReadAclHelperSpawnFailed => {
"repair the installed Codex helpers or ask IT to allow their execution"
"repair the installed aKode helpers or ask IT to allow their execution"
}
SetupErrorCode::HelperUserProvisionFailed
| SetupErrorCode::HelperUsersGroupCreateFailed
@@ -295,19 +295,19 @@ pub(super) fn sandbox_check(config: &Config, arg0_paths: &Arg0DispatchPaths) ->
| SetupErrorCode::HelperUsersFileWriteFailed
| SetupErrorCode::HelperSetupMarkerWriteFailed
| SetupErrorCode::HelperSandboxLockFailed => {
"rerun elevated setup for the authoritative Codex home or ask IT"
"rerun elevated setup for the authoritative aKode home or ask IT"
}
SetupErrorCode::HelperFirewallComInitFailed
| SetupErrorCode::HelperFirewallPolicyAccessFailed
| SetupErrorCode::HelperFirewallPolicyIneffective
| SetupErrorCode::HelperFirewallRuleCreateOrAddFailed
| SetupErrorCode::HelperFirewallRuleVerifyFailed => {
"ask IT to allow Codex sandbox rules in managed Windows Firewall policy"
"ask IT to allow aKode sandbox rules in managed Windows Firewall policy"
}
SetupErrorCode::OrchestratorPayloadSerializeFailed
| SetupErrorCode::HelperRequestArgsFailed
| SetupErrorCode::HelperUnknownError => {
"repair or reinstall the Codex CLI from an approved distribution"
"repair or reinstall the aKode CLI from an approved distribution"
}
};
check

View File

@@ -76,13 +76,13 @@ pub(super) fn endpoint_check(inspection: EndpointInspection) -> DoctorCheck {
"security.endpoint",
"security",
CheckStatus::Warning,
"endpoint protection detected; Codex exclusions are unverified",
"endpoint protection detected; aKode exclusions are unverified",
)
.detail(format!("endpoint products: {}", products.join(", ")))
.detail(format!("exclusion targets: {targets}"))
.detail("Codex exclusions: not verified")
.detail("aKode exclusions: not verified")
.remediation(
"ask your security administrator to verify Codex exclusions and required helper allowances",
"ask your security administrator to verify aKode exclusions and required helper allowances",
);
if visibility_incomplete {
check = check.detail("additional endpoint products: unavailable");
@@ -91,33 +91,33 @@ pub(super) fn endpoint_check(inspection: EndpointInspection) -> DoctorCheck {
for product in products {
let remedy = match product {
"CrowdStrike Falcon" => {
"CrowdStrike Falcon: Add a certificate or IOA exclusion for Codex. If sensor overhead continues, exclude the Codex agent from sensor visibility. Keep monitoring descendant processes."
"CrowdStrike Falcon: Add a certificate or IOA exclusion for aKode. If sensor overhead continues, exclude the aKode agent from sensor visibility. Keep monitoring descendant processes."
}
"BeyondTrust Privilege Management" => {
"BeyondTrust: Remove Codex from application blocking rules. Add allow rules for Codex helper executables. Do not grant administrator privileges."
"BeyondTrust: Remove aKode from application blocking rules. Add allow rules for aKode helper executables. Do not grant administrator privileges."
}
"Microsoft Defender" => {
"Microsoft Defender: Add a certificate or executable-path exclusion for Codex and its helpers. If Attack Surface Reduction blocks Codex, add a rule exclusion. If Controlled Folder Access blocks Codex, allow the app."
"Microsoft Defender: Add a certificate or executable-path exclusion for aKode and its helpers. If Attack Surface Reduction blocks aKode, add a rule exclusion. If Controlled Folder Access blocks aKode, allow the app."
}
"SentinelOne" => {
"SentinelOne: Add a signer, file-hash, or executable-path exclusion for Codex and its helpers."
"SentinelOne: Add a signer, file-hash, or executable-path exclusion for aKode and its helpers."
}
"Jamf Protect" => {
"Jamf Protect: Add an Override Threat Prevention exception for Codex app and helper signing identities. If analytics cause delays, add an Ignore System Events for Analytics exception."
"Jamf Protect: Add an Override Threat Prevention exception for aKode app and helper signing identities. If analytics cause delays, add an Ignore System Events for Analytics exception."
}
_ => {
"Add an exclusion for Codex and its helpers. Use the endpoint product instructions."
"Add an exclusion for aKode and its helpers. Use the endpoint product instructions."
}
};
check = check.issue(
DoctorIssue::new(
CheckStatus::Warning,
format!("{product} can interfere with Codex. Verify Codex exclusions."),
format!("{product} can interfere with aKode. Verify aKode exclusions."),
)
.measured("not verified")
.expected("Codex application and helper exclusions")
.expected("aKode application and helper exclusions")
.remedy(remedy)
.field("Codex exclusions"),
.field("aKode exclusions"),
);
}

View File

@@ -54,7 +54,7 @@ fn each_endpoint_product_requires_vendor_specific_app_exclusions() {
.to_ascii_lowercase();
assert_eq!(
remediation,
"ask your security administrator to verify codex exclusions and required helper allowances",
"ask your security administrator to verify akode exclusions and required helper allowances",
"{product}"
);
assert!(
@@ -77,7 +77,7 @@ fn each_endpoint_product_requires_vendor_specific_app_exclusions() {
issue.cause
);
assert!(
issue.cause.contains("Verify Codex exclusions."),
issue.cause.contains("Verify aKode exclusions."),
"{product}: {}",
issue.cause
);

View File

@@ -2,7 +2,7 @@
source: cli/src/doctor/filesystem_paths_tests.rs
expression: "super::super::render_human_report(&report, super::super::HumanOutputOptions\n{ show_details: true, show_all: false, ascii: true, color_enabled: false, },)"
---
Codex Doctor vtest
aKode Doctor vtest
Configuration
[ok] sandbox configured filesystem paths listed; read restrictions prevent probes

View File

@@ -3,7 +3,7 @@ source: cli/src/doctor/git.rs
assertion_line: 150
expression: "super::super::render_human_report(&report, super::super::HumanOutputOptions\n{ show_details: true, show_all: false, ascii: true, color_enabled: false, },)"
---
Codex Doctor vtest
aKode Doctor vtest
Environment
[ok] git git executable found; execution not verified

View File

@@ -2,15 +2,15 @@
source: cli/src/doctor/output.rs
expression: "render_human_report(&report, detailed_no_color_unicode_options())"
---
Codex Doctor v0.0.0
aKode Doctor v0.0.0
Notes
↑ desktop build 123 available (ready to install)
⚠ terminal narrow terminal
✗ auth token expired - Run `codex login`.
✗ network provider is unreachable - A macOS system proxy is configured but unused. If your organization requires it, ask your administrator whether to enable the experimental System proxy setting in `/experimental` or with `codex features enable respect_system_proxy`. Restart Codex after changing this setting.
✗ network provider is unreachable - A macOS system proxy is configured but unused. If your organization requires it, ask your administrator whether to enable the experimental System proxy setting in `/experimental` or with `codex features enable respect_system_proxy`. Restart aKode after changing this setting.
⚠ git this worktree is not on a Windows Dev Drive - create a trusted Windows Dev Drive: https://learn.microsoft.com/en-us/windows/dev-drive/
⚠ security Microsoft Defender can interfere with Codex. Verify Codex exclusions.
⚠ security Microsoft Defender can interfere with aKode. Verify aKode exclusions.
─────────────────────────────────────────────────────────────
Environment
@@ -24,11 +24,11 @@ Environment
GH_PAGER less
LESS -FRX
✓ disk sufficient free disk space (42.0 GiB)
⚠ security Microsoft Defender can interfere with Codex. Verify Codex exclusions.
⚠ security Microsoft Defender can interfere with aKode. Verify aKode exclusions.
endpoint products Microsoft Defender
exclusion targets verified Codex app and required helpers
▸ Codex exclusions not verified (expected Codex application and helper exclusions)
→ Microsoft Defender: Add a certificate or executable-path exclusion for Codex and its helpers. If Attack Surface Reduction blocks Codex, add a rule exclusion. If Controlled Folder Access blocks Codex, allow the app.
▸ aKode exclusions not verified (expected aKode application and helper exclusions)
→ Microsoft Defender: Add a certificate or executable-path exclusion for aKode and its helpers. If Attack Surface Reduction blocks aKode, add a rule exclusion. If Controlled Folder Access blocks aKode, allow the app.
✓ runtime running local build on darwin-arm64
✓ install consistent
managed by npm: no · bun: no · pnpm: no · Vite+: no · package root —
@@ -66,7 +66,7 @@ Updates
Connectivity
✓ network network environment readable
✗ network provider is unreachable — A macOS system proxy is configured but unused. If your organization requires it, ask your administrator whether to enable the experimental System proxy setting in `/experimental` or with `codex features enable respect_system_proxy`. Restart Codex after changing this setting.
✗ network provider is unreachable — A macOS system proxy is configured but unused. If your organization requires it, ask your administrator whether to enable the experimental System proxy setting in `/experimental` or with `codex features enable respect_system_proxy`. Restart aKode after changing this setting.
✓ websocket Responses WebSocket handshake succeeded
✓ reachability active provider endpoints are reachable over HTTP

View File

@@ -2,7 +2,7 @@
source: cli/src/doctor/output.rs
expression: "render_human_report(&report, detailed_all_no_color_unicode_options())"
---
Codex Doctor v0.0.0
aKode Doctor v0.0.0
Notes
⚠ mcp missing inputs

View File

@@ -192,10 +192,10 @@ fn missing_state_db_check(scan: RolloutScan, details: Vec<String>) -> DoctorChec
)
.measured(format!("{} rollout files", scan.files.len()))
.expected("state DB contains matching thread rows")
.remedy("Start Codex with no state DB present so startup backfill can create it from rollout files."),
.remedy("Start aKode with no state DB present so startup backfill can create it from rollout files."),
)
.remediation(
"Start Codex with no state DB present so startup backfill can create it from rollout files.",
"Start aKode with no state DB present so startup backfill can create it from rollout files.",
);
}
if !scan.scan_errors.is_empty() || !scan.malformed_names.is_empty() || scan.reached_scan_cap {

View File

@@ -90,11 +90,12 @@ use codex_protocol::protocol::AskForApproval;
use codex_protocol::user_input::UserInput;
use codex_terminal_detection::TerminalName;
/// Codex CLI
/// aKode CLI
///
/// If no subcommand is specified, options will be forwarded to the interactive CLI.
#[derive(Debug, Parser)]
#[clap(
name = "akode",
author,
version,
// If a sub‑command is given, ignore requirements of the default args.
@@ -130,7 +131,7 @@ enum Subcommand {
/// Internal: forward a local TCP socket through an HTTP/3 CONNECT proxy.
#[clap(hide = true)]
TcpTunnel(codex_tcp_tunnel::Args),
/// Run Codex non-interactively.
/// Run aKode non-interactively.
#[clap(visible_alias = "e")]
Exec(ExecCli),
@@ -143,10 +144,10 @@ enum Subcommand {
/// Remove stored authentication credentials.
Logout(LogoutCommand),
/// Manage external MCP servers for Codex.
/// Manage external MCP servers for aKode.
Mcp(McpCli),
/// Manage Codex plugins.
/// Manage aKode plugins.
Plugin(PluginCli),
/// [experimental] Run the app server or related tooling.
@@ -155,13 +156,13 @@ enum Subcommand {
/// Generate shell completion scripts.
Completion(CompletionCommand),
/// Update Codex to the latest version.
/// Update aKode to the latest version.
Update,
/// Diagnose local Codex installation, config, auth, and runtime health.
/// Diagnose local aKode installation, config, auth, and runtime health.
Doctor(DoctorCommand),
/// Run commands within a Codex-provided sandbox.
/// Run commands within an aKode-provided sandbox.
Sandbox(SandboxCommand),
/// Debugging tools.
@@ -277,7 +278,7 @@ struct DebugModelsCommand {
#[derive(Debug, Parser)]
struct ReviewCommand {
/// Error out when config.toml contains fields that are not recognized by this version of Codex.
/// Error out when config.toml contains fields that are not recognized by this version of aKode.
#[arg(long = "strict-config", default_value_t = false)]
strict_config: bool,
@@ -362,7 +363,7 @@ struct SessionArchiveConfigOverrides {
#[clap(flatten)]
shared: SharedCliOptions,
/// Error out when config.toml contains fields that are not recognized by this version of Codex.
/// Error out when config.toml contains fields that are not recognized by this version of aKode.
#[arg(long = "strict-config", default_value_t = false)]
strict_config: bool,
@@ -529,7 +530,7 @@ struct AppServerCommand {
#[command(flatten)]
code_mode_host: codex_app_server::AppServerCodeModeHostArgs,
/// Error out when config.toml contains fields that are not recognized by this version of Codex.
/// Error out when config.toml contains fields that are not recognized by this version of aKode.
#[arg(long = "strict-config", default_value_t = false)]
strict_config: bool,
@@ -716,7 +717,7 @@ fn run_update_action(
) -> anyhow::Result<()> {
if let UpdateAction::Daemon(source) = action {
let executable = cli_executable
.ok_or_else(|| anyhow::anyhow!("Cannot locate the launching Codex CLI"))?;
.ok_or_else(|| anyhow::anyhow!("Cannot locate the launching aKode CLI"))?;
println!("Updating the local background server...");
let status = std::process::Command::new(executable)
.args(source.command_args())
@@ -725,12 +726,12 @@ fn run_update_action(
status.success(),
"Daemon update failed with status {status}"
);
println!("Relaunch Codex to reconnect.");
println!("Relaunch aKode to reconnect.");
return Ok(());
}
println!();
let cmd_str = action.command_str();
println!("Updating Codex via `{cmd_str}`...");
println!("Updating aKode via `{cmd_str}`...");
let status = {
#[cfg(windows)]
{
@@ -774,7 +775,7 @@ fn run_update_action(
if !status.success() {
anyhow::bail!("`{cmd_str}` failed with status {status}");
}
println!("\n🎉 Update ran successfully! Please restart Codex.");
println!("\n🎉 Update ran successfully! Please restart aKode.");
Ok(())
}
@@ -799,7 +800,7 @@ fn run_update_command() -> anyhow::Result<()> {
#[cfg(debug_assertions)]
{
anyhow::bail!(
"`codex update` is not available in debug builds. Install a release build of Codex to use this command."
"`codex update` is not available in debug builds. Install a release build of aKode to use this command."
);
}
@@ -807,7 +808,7 @@ fn run_update_command() -> anyhow::Result<()> {
{
let Some(action) = codex_tui::get_update_action() else {
anyhow::bail!(
"Could not detect the Codex installation method. Please update manually: https://developers.openai.com/codex/cli/"
"Could not detect the aKode installation method. Please update manually: https://developers.openai.com/codex/cli/"
);
};
run_update_action(action, /*cli_executable*/ None)
@@ -2288,7 +2289,7 @@ async fn run_interactive_tui(
}
eprintln!(
"WARNING: TERM is set to \"dumb\". Codex's interactive TUI may not work in this terminal."
"WARNING: TERM is set to \"dumb\". aKode's interactive TUI may not work in this terminal."
);
if !confirm("Continue anyway? [y/N]: ")? {
return Ok(AppExitInfo::fatal(
@@ -2369,7 +2370,7 @@ where
Err(backup_err) => {
local_state_db::print_diagnostic_guidance(startup_error);
return Ok(AppExitInfo::fatal(format!(
"failed to move damaged Codex local database files into a backup folder automatically: {backup_err}"
"failed to move damaged aKode local database files into a backup folder automatically: {backup_err}"
)));
}
}

View File

@@ -45,7 +45,7 @@ enum MarketplaceSubcommand {
/// Add a local or Git marketplace to the configured marketplace sources.
Add(AddMarketplaceArgs),
/// List plugin marketplaces Codex is currently considering and their roots.
/// List plugin marketplaces aKode is currently considering and their roots.
List(ListMarketplaceArgs),
/// Refresh configured Git marketplace snapshots.

View File

@@ -40,7 +40,7 @@ pub(crate) async fn run(
eprintln!("{warning}");
}
eprintln!(
"Stop all Codex instances on every host that uses these databases.\nKeep them stopped until the migration completes successfully."
"Stop all aKode instances on every host that uses these databases.\nKeep them stopped until the migration completes successfully."
);
let config = ConfigBuilder::default()
.cli_overrides(
@@ -92,7 +92,7 @@ pub(crate) async fn run(
continue;
}
let outcome = migration.migrate(&database.path, &command.staging_dir).await.with_context(|| format!(
"migration failed for {}. Keep all Codex instances stopped. Correct the error and rerun codex migrate-nfs-db",
"migration failed for {}. Keep all aKode instances stopped. Correct the error and rerun codex migrate-nfs-db",
database.path.display()
))?;
match outcome {
@@ -112,6 +112,6 @@ pub(crate) async fn run(
println!("No databases found.");
return Ok(());
}
println!("Migration completed successfully. You can restart Codex.");
println!("Migration completed successfully. You can restart aKode.");
Ok(())
}

View File

@@ -21,7 +21,7 @@ pub(crate) struct SandboxSetupCommand {
#[arg(long = "elevated", action = ArgAction::SetTrue)]
elevated_sandbox_level: bool,
/// Windows user that will run Codex after managed deployment.
/// Windows user that will run aKode after managed deployment.
#[arg(
long = "user",
value_name = "USER",
@@ -30,7 +30,7 @@ pub(crate) struct SandboxSetupCommand {
)]
user: Option<String>,
/// Use the current Windows user as the Codex user.
/// Use the current Windows user as the aKode user.
#[arg(
long = "current-user",
default_value_t = false,
@@ -38,7 +38,7 @@ pub(crate) struct SandboxSetupCommand {
)]
current_user: bool,
/// CODEX_HOME for the Codex user. Required with --user.
/// CODEX_HOME for the aKode user. Required with --user.
#[arg(long = "codex-home", value_name = "DIR")]
codex_home: Option<PathBuf>,
}
@@ -99,7 +99,7 @@ async fn run_elevated(
.cli_overrides(cli_overrides)
.build()
.await
.context("failed to load target user's Codex config for sandbox provisioning")?;
.context("failed to load target user's aKode config for sandbox provisioning")?;
codex_core::windows_sandbox::run_elevated_provisioning_setup(
identity.codex_home.as_path(),

View File

@@ -5,7 +5,7 @@ use clap::Args;
#[derive(Debug, Args)]
#[command(
about = "Remove the legacy Windows sandbox's machine-wide accounts and network rules",
after_help = "Run as administrator after stopping apps using the legacy sandbox and its provisioning service, if installed.\nPreserves Codex home, including sandbox directories and filesystem permissions."
after_help = "Run as administrator after stopping apps using the legacy sandbox and its provisioning service, if installed.\nPreserves aKode home, including sandbox directories and filesystem permissions."
)]
pub(crate) struct SandboxUninstallCommand {}

View File

@@ -2,7 +2,7 @@
source: cli/src/doctor.rs
expression: "render_human_report(&report, HumanOutputOptions\n{ show_details: true, show_all: true, ascii: true, color_enabled: false, })"
---
Codex Doctor v0.0.0
aKode Doctor v0.0.0
Notes
[!!] terminal TERM=dumb - colors and cursor control are disabled in this non-interactive run

View File

@@ -2,7 +2,7 @@
source: cli/src/doctor.rs
expression: "render_human_report(&DoctorReport\n{\n schema_version: 1, generated_at: \"0s since unix epoch\".to_string(),\n overall_status: check.status, codex_version: \"0.0.0\".to_string(), checks:\n vec![check],\n}, HumanOutputOptions\n{ show_details: false, show_all: false, ascii: true, color_enabled: false, })"
---
Codex Doctor v0.0.0
aKode Doctor v0.0.0
Notes
[XX] terminal 3 issues - TERMINFO unreadable - terminal capabilities are unknown; TERM=dumb - colors and cursor control are disabled in this non-interactive run

View File

@@ -3,7 +3,7 @@ source: cli/src/doctor.rs
expression: rendered
---
successful handshake
Codex Doctor v0.0.0
aKode Doctor v0.0.0
Connectivity
[ok] network network environment is readable
@@ -22,7 +22,7 @@ Connectivity
--json redacted report
immediate close
Codex Doctor v0.0.0
aKode Doctor v0.0.0
Notes
[!!] websocket Responses WebSocket closed immediately after handshake - Check proxy, VPN, firewall, DNS, custom CA, and WebSocket policy support.
@@ -45,7 +45,7 @@ Connectivity
--json redacted report
stream failure
Codex Doctor v0.0.0
aKode Doctor v0.0.0
Notes
[!!] websocket Responses WebSocket failed; HTTPS fallback may still work - Check proxy, VPN, firewall, DNS, custom CA, and WebSocket policy support.

View File

@@ -30,8 +30,8 @@ fn sqlite_home_is_blocking_file(startup_error: &LocalStateDbStartupError) -> boo
}
pub(crate) fn print_auto_backup_start(startup_error: &LocalStateDbStartupError) {
eprintln!("Codex couldn't start because its local database appears to be damaged.");
eprintln!("Moving the damaged local database aside so Codex can rebuild it from saved data.");
eprintln!("aKode couldn't start because its local database appears to be damaged.");
eprintln!("Moving the damaged local database aside so aKode can rebuild it from saved data.");
print_technical_details(startup_error);
}
@@ -45,9 +45,9 @@ pub(crate) fn confirm_fresh_start_rebuild(
startup_error: &LocalStateDbStartupError,
backups: &[RuntimeDbBackup],
) -> std::io::Result<()> {
eprintln!("Codex rebuilt its local database.");
eprintln!("aKode rebuilt its local database.");
eprintln!(
"Codex detected a damaged local database, moved it into a backup folder, and will continue startup with a fresh database."
"aKode detected a damaged local database, moved it into a backup folder, and will continue startup with a fresh database."
);
eprintln!("Database path: {}", startup_error.database_path().display());
if let Some(backup_folder) = backup_folder(backups) {
@@ -67,15 +67,15 @@ pub(crate) fn confirm_fresh_start_rebuild(
}
pub(crate) fn print_diagnostic_guidance(startup_error: &LocalStateDbStartupError) {
eprintln!("Codex couldn't start because its local database appears to be damaged.");
eprintln!("aKode couldn't start because its local database appears to be damaged.");
eprintln!("Run `codex doctor` to check your setup and get next-step guidance.");
eprintln!("If this keeps happening, share the technical details below when asking for help.");
print_technical_details(startup_error);
}
pub(crate) fn print_locked_guidance(startup_error: &LocalStateDbStartupError) {
eprintln!("Codex couldn't start because another Codex process is using its local data.");
eprintln!("Quit any other copies of Codex that may still be running, then try again.");
eprintln!("aKode couldn't start because another aKode process is using its local data.");
eprintln!("Quit any other copies of aKode that may still be running, then try again.");
print_technical_details(startup_error);
}

View File

@@ -91,7 +91,7 @@ async fn migration_requires_consent_and_preserves_shared_database_mode() -> Resu
.find(|line| line.starts_with("Error: migration failed"))
.unwrap()
.replace(home.path().to_str().unwrap(), "[HOME]"),
@"Error: migration failed for [HOME]/logs_2.sqlite. Keep all Codex instances stopped. Correct the error and rerun codex migrate-nfs-db"
@"Error: migration failed for [HOME]/logs_2.sqlite. Keep all aKode instances stopped. Correct the error and rerun codex migrate-nfs-db"
);
assert_eq!(
std::fs::read(sqlite.logs_db_path())?,

View File

@@ -2,7 +2,7 @@
source: cli/tests/doctor_enterprise_network.rs
expression: stdout
---
Codex Doctor v0.0.0
aKode Doctor v0.1.0
Notes
[XX] config config could not be loaded - Fix the reported config error, then rerun codex doctor.

View File

@@ -2,7 +2,7 @@
source: cli/tests/doctor_enterprise_network.rs
expression: stdout
---
Codex Doctor v0.0.0
aKode Doctor v0.1.0
Configuration
[ok] config loaded

View File

@@ -0,0 +1,18 @@
---
source: cli/tests/doctor_path_safety.rs
assertion_line: 412
expression: "serde_json::to_string_pretty(&check)?"
---
{
"category": "config",
"details": {
"column": "16",
"error": "invalid configuration",
"file": "FIXTURE/home/config.toml",
"line": "9"
},
"id": "config.load",
"remediation": "Fix the reported config error, then rerun codex doctor.",
"status": "fail",
"summary": "config could not be loaded"
}

View File

@@ -0,0 +1,13 @@
---
source: cli/tests/features.rs
assertion_line: 52
expression: output
---
Error: failed to load configuration
Caused by:
0: /private/var/folders/6k/c34nw11j2d75r8lqh1hzfz6w0000gn/T/.tmpq6XL7K/config.toml:2:18: unknown key `backslash` in keybinding `backslash`. Use a printable character (for example `a`), function keys (`f1`-`f24`), or one of: enter, tab, backspace, esc, delete, arrows, home/end, page-up/page-down, space, minus.
See the Codex keymap documentation for supported actions and examples.
1: unknown key `backslash` in keybinding `backslash`. Use a printable character (for example `a`), function keys (`f1`-`f24`), or one of: enter, tab, backspace, esc, delete, arrows, home/end, page-up/page-down, space, minus.
See the Codex keymap documentation for supported actions and examples.
in `tui.keymap.editor.insert_newline`