fix: support $CODEX_HOME/AGENTS.md instead of $CODEX_HOME/instructions.md

This commit is contained in:
Michael Bolin
2025-08-06 11:32:07 -07:00
parent ae88b69b09
commit 1ad3e49919
+2 -2
View File
@@ -70,7 +70,7 @@ pub struct Config {
/// who have opted into Zero Data Retention (ZDR).
pub disable_response_storage: bool,
/// User-provided instructions from instructions.md.
/// User-provided instructions from AGENTS.md.
pub user_instructions: Option<String>,
/// Base instructions override.
@@ -575,7 +575,7 @@ impl Config {
None => return None,
};
p.push("instructions.md");
p.push("AGENTS.md");
std::fs::read_to_string(&p).ok().and_then(|s| {
let s = s.trim();
if s.is_empty() {