better message

This commit is contained in:
Jeremy Rose
2025-08-14 12:23:44 -07:00
parent 22aefec50e
commit 52f8d08cef

View File

@@ -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(