From 24f027b4ab27f6db4f62559072a761e7d98ab6d1 Mon Sep 17 00:00:00 2001 From: pash Date: Fri, 30 Jan 2026 14:34:39 -0800 Subject: [PATCH] minor comment change --- codex-rs/core/src/turn_metadata.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/codex-rs/core/src/turn_metadata.rs b/codex-rs/core/src/turn_metadata.rs index ddab90a9c4..3f71e412eb 100644 --- a/codex-rs/core/src/turn_metadata.rs +++ b/codex-rs/core/src/turn_metadata.rs @@ -23,15 +23,10 @@ struct TurnMetadata { workspaces: BTreeMap, } -/// Build a per-turn metadata header value for the given working directory. -/// -/// This is intentionally evaluated lazily at request send time so turns that -/// never reach the model do not pay the git subprocess cost. +/// this happens at request send time only pub(crate) async fn build_turn_metadata_header(cwd: &Path) -> Option { let repo_root = get_git_repo_root(cwd)?; - // Keep git subprocess work bounded per command, without wrapping the - // entire metadata build in a separate timeout. let (latest_git_commit_hash, associated_remote_urls) = tokio::join!( get_head_commit_hash_with_timeout(cwd, TURN_METADATA_TIMEOUT), get_git_remote_urls_assume_git_repo_with_timeout(cwd, TURN_METADATA_TIMEOUT)