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:
@@ -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>>,
|
||||
|
||||
Reference in New Issue
Block a user