Lightweight coding agent that runs in your terminal
Rust
Trace global user instruction loading (#45496)
vkg-oaiafaad7cdc010
diff --git a/codex-rs/Cargo.lock b/codex-rs/Cargo.lockindex 417f19779b..60170140db 100644--- a/codex-rs/Cargo.lock+++ b/codex-rs/Cargo.lock@@ -3658,6 +3658,7 @@ dependencies = ["pretty_assertions","tempfile","tokio",+ "tracing",][[package]]diff --git a/codex-rs/codex-home/Cargo.toml b/codex-rs/codex-home/Cargo.tomlindex a8fa625dcf..068ec55b4e 100644--- a/codex-rs/codex-home/Cargo.toml+++ b/codex-rs/codex-home/Cargo.toml@@ -14,6 +14,7 @@ workspace = truecodex-extension-api = { workspace = true }codex-utils-absolute-path = { workspace = true }tokio = { workspace = true, features = ["fs"] }+tracing = { workspace = true }[dev-dependencies]pretty_assertions = { workspace = true }diff --git a/codex-rs/codex-home/src/instructions/mod.rs b/codex-rs/codex-home/src/instructions/mod.rsindex aa3a67267f..a16ad668af 100644--- a/codex-rs/codex-home/src/instructions/mod.rs+++ b/codex-rs/codex-home/src/instructions/mod.rs@@ -37,6 +37,7 @@ impl CodexHomeUserInstructionsProvider {}}+ #[tracing::instrument(name = "instructions.load", skip_all, fields(provider = "global"))]async fn load_from_codex_home(&self) -> LoadedUserInstructions {let mut warnings = Vec::new();for candidate in [LOCAL_AGENTS_MD_FILENAME, DEFAULT_AGENTS_MD_FILENAME] {