aKode: rimossa la memoria nativa di Codex e le funzioni senza codice; meno chiamate al modello
Memoria nativa (memories) rimossa del tutto: - features: memories, memory_tool, external_agent_memory_import, chronicle (alias telepathy) diventano Removed; le chiavi restano accettate e memories/memory_tool/[memories] producono un solo avviso senza link («La sezione [memories] e la chiave memory_tool non sono più usate da aKode: la memoria a lungo termine è il plugin memoria di imeAI.»). - Tolti i crate memories/read, memories/write ed ext/memories, l'avvio della pipeline a ogni turno (app-server), l'estensione, /memories e la richiesta di attivazione nella TUI, `akode debug clear-memories`, l'importazione delle memorie da altri agenti (memory_import.rs, detect/memory.rs; il resto di /import resta). - core: niente più MemoriesConfig, citazioni delle memorie, metriche e marcatura «polluted» dei thread; [memories] (MemoriesToml) resta solo come sezione accettata e ignorata. - state: memories_1.sqlite e memories_v2_1.sqlite non vengono più aperti né cancellati; la colonna threads.memory_mode resta, nessuna migrazione. - Protocollo app-server invariato per compatibilità col daemon: memory/reset risponde «non supportato» senza cancellare nulla, memory/status non è mai pronto, thread/memory/read non ha riassunto. Altre rimozioni: - I 14 flag dell'app desktop di OpenAI senza codice (tool_suggest, in_app_*, browser_use*, computer_use, bedrock_setup_wizard, workspace_dependencies) e analytics_plan_history: Removed, chiavi accettate; analytics_plan_history esce da /experimental. - Skill: tolto l'esperimento «shadow selection» e i selettori collegati. Meno chiamate al modello non richieste: - Titoli dei thread: il primo messaggio dell'utente su una riga, troncato a 36 caratteri; `[tui] auto_title = true` riattiva i titoli generati. - `[tui] auto_recap` predefinito false; `goals` spento di default. Privacy: installation_id e gli id di sessione/thread/finestra (e il blocco dei metadati del turno che li ripete) vanno in client_metadata e negli header di compatibilità solo ai provider locali (loopback, IP privati 10/8, 172.16/12, 192.168/16, host .local/.lan). Domini OpenAI: tolti i link visibili (avviso dei flag deprecati, profili, bubblewrap), l'attribuzione Codex nei commit (sempre spenta), la riscrittura dell'URL della documentazione OpenAI via MCP e la registrazione remota dell'exec-server verso host OpenAI (ora solo loopback); il riconoscimento delle destinazioni OpenAI confronta i domini etichetta per etichetta. Il binario non contiene più «openai.com» né «chatgpt.com». Test adattati (sicurezza compresa: guardian, ruolo ostile, exec-server ora più restrittivo); rimossi solo quelli del codice tolto. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,6 @@ use crate::config_values::merge_missing_mcp_servers;
|
||||
use crate::config_values::merge_missing_toml_values;
|
||||
use crate::config_values::migrated_mcp_server_names;
|
||||
use crate::config_values::write_toml_file;
|
||||
use crate::memory_import;
|
||||
use crate::migration_source::ExternalAgentSource;
|
||||
use crate::migration_source::InstructionSourceGroup;
|
||||
pub use crate::model::DetectedConnectorCandidate;
|
||||
@@ -43,7 +42,6 @@ use akode_core::config::Config;
|
||||
use akode_core_plugins::PluginsManager;
|
||||
use akode_core_plugins::marketplace::MarketplacePluginInstallPolicy;
|
||||
use akode_login::AuthManager;
|
||||
use akode_protocol::MemoryVersion;
|
||||
use akode_protocol::protocol::Product;
|
||||
use akode_rollout::StateDbHandle;
|
||||
use serde_json::Value as JsonValue;
|
||||
@@ -73,7 +71,6 @@ pub struct ExternalAgentConfigService {
|
||||
pub(crate) source: ExternalAgentSource,
|
||||
pub(crate) session_import_limits: ExternalAgentSessionImportLimits,
|
||||
state_db: Option<StateDbHandle>,
|
||||
pub(crate) memory_version: MemoryVersion,
|
||||
}
|
||||
|
||||
impl ExternalAgentConfigService {
|
||||
@@ -93,7 +90,6 @@ impl ExternalAgentConfigService {
|
||||
source,
|
||||
session_import_limits: ExternalAgentSessionImportLimits::default(),
|
||||
state_db,
|
||||
memory_version: MemoryVersion::V1,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,16 +105,9 @@ impl ExternalAgentConfigService {
|
||||
source,
|
||||
session_import_limits: self.session_import_limits,
|
||||
state_db: self.state_db.clone(),
|
||||
memory_version: self.memory_version,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn with_memory_version(&self, selection: MemoryVersion) -> Self {
|
||||
let mut service = self.clone();
|
||||
service.memory_version = selection;
|
||||
service
|
||||
}
|
||||
|
||||
pub fn with_session_import_limits(&self, limits: ExternalAgentSessionImportLimits) -> Self {
|
||||
let mut service = self.clone();
|
||||
service.session_import_limits = limits;
|
||||
@@ -173,7 +162,6 @@ impl ExternalAgentConfigService {
|
||||
source,
|
||||
session_import_limits: ExternalAgentSessionImportLimits::default(),
|
||||
state_db: None,
|
||||
memory_version: MemoryVersion::V1,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -396,51 +384,9 @@ impl ExternalAgentConfigService {
|
||||
}
|
||||
Ok(())
|
||||
})(),
|
||||
ExternalAgentConfigMigrationItemType::Memory if self.source.supports_memory() => {
|
||||
async {
|
||||
let selected_memory = migration_item
|
||||
.details
|
||||
.as_ref()
|
||||
.map(|details| details.memory.as_slice())
|
||||
.unwrap_or_default();
|
||||
let memory_outcome = memory_import::import(
|
||||
&self.codex_home,
|
||||
&self.external_agent_home,
|
||||
self.state_db.as_ref(),
|
||||
self.memory_version,
|
||||
selected_memory,
|
||||
)
|
||||
.await?;
|
||||
emit_migration_metric(
|
||||
EXTERNAL_AGENT_CONFIG_IMPORT_METRIC,
|
||||
ExternalAgentConfigMigrationItemType::Memory,
|
||||
/*skills_count*/ None,
|
||||
);
|
||||
let target_path = memory_import::resources_root(
|
||||
&self.codex_home.join(MemoryVersion::V2.directory_name()),
|
||||
);
|
||||
for project_key in memory_outcome.synchronized_projects {
|
||||
item_result.record_success(
|
||||
Some(project_key),
|
||||
Some(target_path.display().to_string()),
|
||||
/*title*/ None,
|
||||
);
|
||||
}
|
||||
for failure in memory_outcome.failures {
|
||||
record_import_error(
|
||||
&mut item_result,
|
||||
"memory_import",
|
||||
/*sub_error_type*/ None,
|
||||
failure.message,
|
||||
Some(failure.project_key),
|
||||
);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
.await
|
||||
}
|
||||
// L'importazione delle memorie è stata rimossa con la memoria nativa.
|
||||
ExternalAgentConfigMigrationItemType::Memory => Err(invalid_data_error(
|
||||
"memory import is not supported for the selected migration source".to_string(),
|
||||
"memory import is not supported by aKode".to_string(),
|
||||
)),
|
||||
ExternalAgentConfigMigrationItemType::Sessions => Ok(()),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user