aKode fase 3: provider locali, chiavi per provider, modelli dal server, SearXNG
- Provider: rimossi openai, Bedrock e GCP integrati e ogni fallback a OpenAI;
restano ollama, lmstudio e i provider personalizzati. Senza provider, exec e
TUI mostrano come configurarlo.
- Chiave per provider: api_key = "keyring", provider_api_key_store =
auto|keyring|file (fallback su file 0600 / ACL Windows); `codex login
--provider <id> --with-api-key`, `logout --provider`; login status e doctor
mostrano dove sta la chiave senza rivelarla.
- Modelli letti da GET {base_url}/models; contesto da config, poi dal server
(/props, meta.n_ctx), poi 32768; apply_patch come tool function; niente tool
ospitati; niente piu' avviso "metadata not found".
- Unione dei soli messaggi system/developer iniziali in un unico system;
quelli successivi restano al loro posto come user (cache del server
preservata: turno N prefisso esatto del turno N+1).
- Modelli ausiliari (memorie, guardian-v2) = modello di sessione se il
preferito gpt-* non e' nel catalogo.
- Ricerca web: crate web-tools, backend SearXNG con web_search e web_fetch
(protezione SSRF); senza backend nessuno strumento web.
- Skill: rimossa openai-docs; skill-installer punta a git.difonzo.net.
- apply_patch accetta gli header @@ -a,b +c,d @@ dei diff unificati.
- Rimossi resti: request_plugin_install, AppsInstructions, --cyber-access-program,
URL updater/realtime predefiniti.
- Fix: importazione sessioni con provider vuoto.
- Istruzioni di sistema invariate. Test: cancellati solo quelli del codice
rimosso, test di sicurezza adattati; restano solo fallimenti d'ambiente.
- Prova reale su imeAI + SearXNG: risposta, modifica file, web_search,
cache riusata, connessioni solo verso .25 e .57.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -302,11 +302,12 @@ async fn exec_command_rejects_login_when_disabled() -> Result<()> {
|
||||
async fn exec_command_hides_and_rejects_tty_when_disabled() -> Result<()> {
|
||||
skip_if_no_network!(Ok(()));
|
||||
|
||||
let builder = test_codex().with_model("gpt-5.4").with_managed_config(
|
||||
ManagedConfigFixture::requirements(
|
||||
"[features]\nunified_exec_tty = false\n",
|
||||
),
|
||||
);
|
||||
let builder =
|
||||
test_codex()
|
||||
.with_model("gpt-5.4")
|
||||
.with_managed_config(ManagedConfigFixture::requirements(
|
||||
"[features]\nunified_exec_tty = false\n",
|
||||
));
|
||||
let harness = TestCodexHarness::with_auto_env_builder(builder).await?;
|
||||
let call_id = "tty-denied";
|
||||
let arguments = json!({"cmd": "echo should-not-run > tty-disabled-rejected", "tty": true});
|
||||
@@ -353,11 +354,12 @@ async fn exec_command_runs_without_tty_when_tty_disabled() -> Result<()> {
|
||||
"basic PowerShell execution through Wine is unavailable"
|
||||
);
|
||||
|
||||
let builder = test_codex().with_model("gpt-5.4").with_managed_config(
|
||||
ManagedConfigFixture::requirements(
|
||||
"[features]\nunified_exec_tty = false\n",
|
||||
),
|
||||
);
|
||||
let builder =
|
||||
test_codex()
|
||||
.with_model("gpt-5.4")
|
||||
.with_managed_config(ManagedConfigFixture::requirements(
|
||||
"[features]\nunified_exec_tty = false\n",
|
||||
));
|
||||
let harness = TestCodexHarness::with_auto_env_builder(builder).await?;
|
||||
let mut responses = Vec::new();
|
||||
for (call_id, arguments) in [
|
||||
@@ -3391,15 +3393,13 @@ async fn managed_unified_exec_disable_runs_commands_without_retained_authority()
|
||||
skip_if_sandbox!(Ok(()));
|
||||
|
||||
let server = start_mock_server().await;
|
||||
let mut builder = test_codex().with_managed_config(
|
||||
ManagedConfigFixture::requirements(
|
||||
r#"
|
||||
let mut builder = test_codex().with_managed_config(ManagedConfigFixture::requirements(
|
||||
r#"
|
||||
[features]
|
||||
unified_exec = false
|
||||
shell_tool = true
|
||||
"#,
|
||||
),
|
||||
);
|
||||
));
|
||||
let test = builder.build_with_auto_env(&server).await?;
|
||||
let late_marker = test.config.cwd.join("one-shot-late-marker");
|
||||
let call_id = "managed-one-shot";
|
||||
@@ -3456,15 +3456,13 @@ async fn managed_one_shot_command_is_terminated_when_the_turn_is_interrupted() -
|
||||
skip_if_target_windows!(Ok(()), "uses a POSIX command and process checks");
|
||||
|
||||
let server = start_mock_server().await;
|
||||
let mut builder = test_codex().with_managed_config(
|
||||
ManagedConfigFixture::requirements(
|
||||
r#"
|
||||
let mut builder = test_codex().with_managed_config(ManagedConfigFixture::requirements(
|
||||
r#"
|
||||
[features]
|
||||
unified_exec = false
|
||||
shell_tool = true
|
||||
"#,
|
||||
),
|
||||
);
|
||||
));
|
||||
let test = builder.build_with_auto_env(&server).await?;
|
||||
let temp_dir = tempfile::tempdir()?;
|
||||
let pid_path = temp_dir.path().join("managed_one_shot_pid");
|
||||
|
||||
Reference in New Issue
Block a user