feat: compressor

This commit is contained in:
jif-oai
2026-05-28 18:24:28 +01:00
parent a061befb46
commit d97837a9a0
17 changed files with 979 additions and 88 deletions
+6
View File
@@ -482,6 +482,9 @@
"js_repl_tools_only": {
"type": "boolean"
},
"local_thread_store_compression": {
"type": "boolean"
},
"memories": {
"type": "boolean"
},
@@ -4573,6 +4576,9 @@
"js_repl_tools_only": {
"type": "boolean"
},
"local_thread_store_compression": {
"type": "boolean"
},
"memories": {
"type": "boolean"
},
+13 -4
View File
@@ -22,6 +22,7 @@ use codex_core_plugins::PluginsManager;
use codex_exec_server::EnvironmentManager;
use codex_extension_api::ExtensionRegistry;
use codex_extension_api::empty_extension_registry;
use codex_features::Feature;
use codex_login::AuthManager;
use codex_login::CodexAuth;
use codex_model_provider::create_model_provider;
@@ -230,10 +231,18 @@ pub fn thread_store_from_config(
state_db: Option<StateDbHandle>,
) -> Arc<dyn ThreadStore> {
match &config.experimental_thread_store {
ThreadStoreConfig::Local => Arc::new(LocalThreadStore::new(
LocalThreadStoreConfig::from_config(config),
state_db,
)),
ThreadStoreConfig::Local => {
if config
.features
.enabled(Feature::LocalThreadStoreCompression)
{
codex_rollout::spawn_rollout_compression_worker(config.codex_home.to_path_buf());
}
Arc::new(LocalThreadStore::new(
LocalThreadStoreConfig::from_config(config),
state_db,
))
}
ThreadStoreConfig::InMemory { id } => InMemoryThreadStore::for_id(id),
}
}