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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user