mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
Add code_mode experimental feature (#13418)
A much narrower and more isolated (no node features) version of js_repl
This commit is contained in:
committed by
GitHub
Unverified
parent
a3cd9f16f5
commit
da616136cc
@@ -25,6 +25,7 @@ use crate::plugins::PluginCapabilitySummary;
|
||||
use crate::plugins::render_plugins_section;
|
||||
use crate::skills::SkillMetadata;
|
||||
use crate::skills::render_skills_section;
|
||||
use crate::tools::code_mode;
|
||||
use codex_app_server_protocol::ConfigLayerSource;
|
||||
use dunce::canonicalize as normalize_path;
|
||||
use std::path::PathBuf;
|
||||
@@ -118,6 +119,13 @@ pub(crate) async fn get_user_instructions(
|
||||
output.push_str(&plugin_section);
|
||||
}
|
||||
|
||||
if let Some(code_mode_section) = code_mode::instructions(config) {
|
||||
if !output.is_empty() {
|
||||
output.push_str("\n\n");
|
||||
}
|
||||
output.push_str(&code_mode_section);
|
||||
}
|
||||
|
||||
let skills_section = skills.and_then(render_skills_section);
|
||||
if let Some(skills_section) = skills_section {
|
||||
if !output.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user