aKode fase 5: 429 con Retry-After/X-RateLimit-Reset e messaggi in italiano, filtro modelli nel primo avvio, correzioni della rinomina

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-11 11:41:54 +01:00
parent 86e7c72e5f
commit 8b73331037
130 changed files with 1204 additions and 410 deletions

View File

@@ -267,12 +267,12 @@ fn build_runtime() -> anyhow::Result<tokio::runtime::Runtime> {
Ok(builder.build()?)
}
const ILLEGAL_ENV_VAR_PREFIX: &str = "CODEX_";
const ILLEGAL_ENV_VAR_PREFIX: &str = "AKODE_";
/// Load env vars from ~/.akode/.env.
///
/// Security: Do not allow `.env` files to create or modify any variables
/// with names starting with `CODEX_`.
/// with names starting with `AKODE_`.
fn load_dotenv() {
if let Ok(codex_home) = find_codex_home()
&& let dotenv_path = codex_home.join(".env")
@@ -283,7 +283,7 @@ fn load_dotenv() {
}
}
/// Helper to set vars from a dotenvy iterator while filtering out `CODEX_` keys.
/// Helper to set vars from a dotenvy iterator while filtering out `AKODE_` keys.
fn set_filtered<I>(iter: I)
where
I: IntoIterator<Item = Result<(String, String), dotenvy::Error>>,