aKode 0.2.0: protezione dai loop, errori del server chiari, pulizia

- Protezione dai loop: se il modello ripete lo stesso comando con lo stesso
  errore 3 volte di fila il turno si ferma con un messaggio chiaro (e un
  suggerimento su /permissions per i blocchi della sandbox); configurabile
  con [agent] max_repeated_failures (0 = disattivata).
- Errori dello stream: si mostra il messaggio del server invece di
  "stream closed before response.completed"; il contesto superato
  (llama.cpp, vLLM) diventa un messaggio in italiano; avviso una volta se il
  prompt iniziale supera la finestra del modello.
- Pulizia: tolta la logica morta per le chiavi OpenAI nel credential broker
  (prefisso "sk-", watermark, prefissi ignorati); link alla documentazione
  OpenAI nella TUI sostituiti con il README del repository; test dello
  snapshot del broker adattato al token GitHub.
- Versione 0.2.0 e sezione Novità nel README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-11 22:47:47 +01:00
parent 0043e15ebb
commit 9636b74c7d
72 changed files with 1038 additions and 466 deletions

View File

@@ -31,6 +31,19 @@
},
"type": "object"
},
"AgentToml": {
"additionalProperties": false,
"description": "`[agent]` table: settings for the main agent loop.",
"properties": {
"max_repeated_failures": {
"description": "Stop the turn when the model repeats the same tool call and gets the same failure this many times in a row. Default: 3. `0` disables the check.",
"format": "uint32",
"minimum": 0.0,
"type": "integer"
}
},
"type": "object"
},
"AgentsOverviewGrouping": {
"description": "Last selected grouping in Agent Command Center.",
"enum": [
@@ -7504,6 +7517,14 @@
},
"description": "Base config deserialized from ~/.akode/config.toml.",
"properties": {
"agent": {
"allOf": [
{
"$ref": "#/definitions/AgentToml"
}
],
"description": "Settings for the main agent loop (e.g. loop protection)."
},
"agents": {
"allOf": [
{