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:
@@ -761,6 +761,33 @@ impl Features {
|
||||
"remote_control" | "remote_compaction_v2" => {
|
||||
continue;
|
||||
}
|
||||
// La memoria nativa ereditata da Codex è stata rimossa: la memoria a
|
||||
// lungo termine di aKode è il plugin memoria di imeAI.
|
||||
"memories" | "memory_tool" => {
|
||||
self.record_legacy_usage_force(REMOVED_MEMORIES_ALIAS, Feature::MemoryTool);
|
||||
continue;
|
||||
}
|
||||
"external_agent_memory_import" | "chronicle" | "telepathy" => {
|
||||
continue;
|
||||
}
|
||||
// Funzioni dell'app desktop di OpenAI senza codice in aKode.
|
||||
"tool_suggest"
|
||||
| "in_app_browser"
|
||||
| "browser_annotation_api"
|
||||
| "in_app_chat"
|
||||
| "in_app_dictation"
|
||||
| "in_app_voice"
|
||||
| "in_app_local_automation"
|
||||
| "in_app_updates"
|
||||
| "browser_use"
|
||||
| "browser_use_full_cdp_access"
|
||||
| "browser_use_external"
|
||||
| "computer_use"
|
||||
| "bedrock_setup_wizard"
|
||||
| "workspace_dependencies"
|
||||
| "analytics_plan_history" => {
|
||||
continue;
|
||||
}
|
||||
"apply_patch_freeform" => {
|
||||
continue;
|
||||
}
|
||||
@@ -854,9 +881,20 @@ impl Features {
|
||||
}
|
||||
}
|
||||
|
||||
/// Alias unico con cui si registra l'avviso per `[memories]`, `[features].memories`
|
||||
/// e `[features].memory_tool`: qualunque combinazione produce un solo avviso.
|
||||
pub const REMOVED_MEMORIES_ALIAS: &str = "memories";
|
||||
|
||||
/// Testo dell'avviso per la memoria nativa rimossa (nessun link esterno).
|
||||
pub const REMOVED_MEMORIES_NOTICE: &str = "La sezione [memories] e la chiave memory_tool non sono più usate da aKode: la memoria a lungo termine è il plugin memoria di imeAI.";
|
||||
|
||||
fn legacy_usage_notice(alias: &str, feature: Feature) -> (String, Option<String>) {
|
||||
let canonical = feature.key();
|
||||
match feature {
|
||||
Feature::MemoryTool => (
|
||||
REMOVED_MEMORIES_NOTICE.to_string(),
|
||||
Some("Puoi togliere `memories`/`memory_tool` da [features] e la sezione [memories] da config.toml.".to_string()),
|
||||
),
|
||||
Feature::ShellZshFork | Feature::UnifiedExecZshFork => (
|
||||
format!("`[features].{canonical}` is deprecated and ignored."),
|
||||
Some(format!("The patched zsh backend has been removed. Shell commands now use the standard shell executor. Remove `{canonical}` from [features] in config.toml or profile configuration files.")),
|
||||
@@ -908,7 +946,7 @@ fn legacy_usage_notice(alias: &str, feature: Feature) -> (String, Option<String>
|
||||
None
|
||||
} else {
|
||||
Some(format!(
|
||||
"Enable it with `--enable {canonical}` or `[features].{canonical}` in config.toml. See https://developers.openai.com/codex/config-basic#feature-flags for details."
|
||||
"Enable it with `--enable {canonical}` or `[features].{canonical}` in config.toml."
|
||||
))
|
||||
};
|
||||
(summary, details)
|
||||
@@ -1113,11 +1151,7 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::AnalyticsPlanHistory,
|
||||
key: "analytics_plan_history",
|
||||
stage: Stage::Experimental {
|
||||
name: "Analytics plan history",
|
||||
menu_description: "Preview five-hour and weekly allowance history for consumer accounts in /analytics.",
|
||||
announcement: "",
|
||||
},
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
@@ -1440,13 +1474,13 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::MemoryTool,
|
||||
key: "memories",
|
||||
stage: Stage::Stable,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::ExternalAgentMemoryImport,
|
||||
key: "external_agent_memory_import",
|
||||
stage: Stage::UnderDevelopment,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
@@ -1470,7 +1504,7 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::Chronicle,
|
||||
key: "chronicle",
|
||||
stage: Stage::UnderDevelopment,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
@@ -1844,8 +1878,8 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::ToolSuggest,
|
||||
key: "tool_suggest",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::RecommendedPlugins,
|
||||
@@ -1892,68 +1926,68 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::InAppBrowser,
|
||||
key: "in_app_browser",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::BrowserAnnotationApi,
|
||||
key: "browser_annotation_api",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::InAppChat,
|
||||
key: "in_app_chat",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::InAppDictation,
|
||||
key: "in_app_dictation",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::InAppVoice,
|
||||
key: "in_app_voice",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::InAppLocalAutomation,
|
||||
key: "in_app_local_automation",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::InAppUpdates,
|
||||
key: "in_app_updates",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::BrowserUse,
|
||||
key: "browser_use",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::BrowserUseFullCdpAccess,
|
||||
key: "browser_use_full_cdp_access",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::BrowserUseExternal,
|
||||
key: "browser_use_external",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::ComputerUse,
|
||||
key: "computer_use",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::RemotePlugin,
|
||||
@@ -2199,7 +2233,7 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
id: Feature::Goals,
|
||||
key: "goals",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::TokenBudget,
|
||||
@@ -2258,8 +2292,8 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::BedrockSetupWizard,
|
||||
key: "bedrock_setup_wizard",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::GcpSetupWizard,
|
||||
@@ -2414,8 +2448,8 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::WorkspaceDependencies,
|
||||
key: "workspace_dependencies",
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
stage: Stage::Removed,
|
||||
default_enabled: false,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
use crate::Feature;
|
||||
use crate::REMOVED_MEMORIES_NOTICE;
|
||||
use crate::FeatureConfigSource;
|
||||
use crate::FeatureOverrides;
|
||||
use crate::FeatureToml;
|
||||
@@ -978,3 +979,33 @@ fn model_change_suppression_config_preserves_omission_and_explicit_values() {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn removed_memories_and_desktop_flags_are_accepted_but_ignored() {
|
||||
let mut features = Features::with_defaults();
|
||||
let entries = BTreeMap::from([
|
||||
("memories".to_string(), true),
|
||||
("memory_tool".to_string(), true),
|
||||
("external_agent_memory_import".to_string(), true),
|
||||
("chronicle".to_string(), true),
|
||||
("telepathy".to_string(), true),
|
||||
("in_app_voice".to_string(), true),
|
||||
("computer_use".to_string(), true),
|
||||
("tool_suggest".to_string(), true),
|
||||
]);
|
||||
features.apply_map(&entries);
|
||||
for feature in [
|
||||
Feature::MemoryTool,
|
||||
Feature::ExternalAgentMemoryImport,
|
||||
Feature::Chronicle,
|
||||
Feature::InAppVoice,
|
||||
Feature::ComputerUse,
|
||||
Feature::ToolSuggest,
|
||||
] {
|
||||
assert!(!features.enabled(feature), "{feature:?}");
|
||||
}
|
||||
let usages = features.legacy_feature_usages().collect::<Vec<_>>();
|
||||
assert_eq!(usages.len(), 1, "one notice for memories and memory_tool");
|
||||
assert_eq!(usages[0].summary, REMOVED_MEMORIES_NOTICE);
|
||||
assert!(!features.enabled(Feature::Goals), "goals is off by default");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user