feat(project-context): add tracing log when context file is loaded

Emit a tracing::info! line with the file path and byte size when a
project context file (AGENTS.md, CLAUDE.md, etc.) is successfully loaded.
This helps users and maintainers verify which file was used during
prompt assembly, addressing the confusion reported in #2227.
This commit is contained in:
Hunter Bown
2026-05-26 13:20:25 -05:00
parent 84463711b4
commit a554aa9603
+5
View File
@@ -384,6 +384,11 @@ pub fn load_project_context(workspace: &Path) -> ProjectContext {
if file_path.exists() && file_path.is_file() {
match load_context_file(&file_path) {
Ok(content) => {
tracing::info!(
"Loaded project context from {} ({} bytes)",
file_path.display(),
content.len()
);
ctx.instructions = Some(content);
ctx.source_path = Some(file_path);
break;