Add code_mode experimental feature (#13418)

A much narrower and more isolated (no node features) version of js_repl
This commit is contained in:
pakrym-oai
2026-03-09 21:56:27 -06:00
committed by GitHub
Unverified
parent a3cd9f16f5
commit da616136cc
14 changed files with 958 additions and 0 deletions
+10
View File
@@ -405,6 +405,16 @@ impl Codex {
warn!("{message}");
config.startup_warnings.push(message);
}
if config.features.enabled(Feature::CodeMode)
&& let Err(err) = resolve_compatible_node(config.js_repl_node_path.as_deref()).await
{
let message = format!(
"Disabled `code_mode` for this session because the configured Node runtime is unavailable or incompatible. {err}"
);
warn!("{message}");
let _ = config.features.disable(Feature::CodeMode);
config.startup_warnings.push(message);
}
let allowed_skills_for_implicit_invocation =
loaded_skills.allowed_skills_for_implicit_invocation();