From 52f8d08cef2522013d0d0f7d7cc515ae9fe8d3e9 Mon Sep 17 00:00:00 2001 From: Jeremy Rose Date: Thu, 14 Aug 2025 12:23:44 -0700 Subject: [PATCH] better message --- codex-rs/tui/src/history_cell.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/codex-rs/tui/src/history_cell.rs b/codex-rs/tui/src/history_cell.rs index 243bebbaf1..865a97a5f0 100644 --- a/codex-rs/tui/src/history_cell.rs +++ b/codex-rs/tui/src/history_cell.rs @@ -267,12 +267,14 @@ impl HistoryCell { Line::from(""), ]; if let Some(p) = &agents_path { - let display_path = diff_paths(p, &config.cwd) + let instructions_display_path = diff_paths(p, &config.cwd) .map(|rel| rel.display().to_string()) .unwrap_or_else(|| p.display().to_string()); - lines.push(Line::from( - format!(" AGENTS.md found at {display_path}").dim(), - )); + lines.push(Line::from(vec![ + " Found ".dim(), + instructions_display_path.into(), + ".".dim(), + ])); lines.push(Line::from("")); } lines.push(Line::from(