Remove redundant AGENTS.md heading from startup output
The loaded status line (✓ AGENTS.md ✓ Memory) already indicates that AGENTS.md was loaded, so the separate '>> AGENTS.md - Machine Instructions' heading line was redundant. - Remove print_project_heading() function from display.rs - Remove extract_project_heading call from interactive.rs - Clean up unused imports
This commit is contained in:
@@ -190,17 +190,6 @@ pub fn print_loaded_status(loaded: &LoadedContent) {
|
|||||||
println!();
|
println!();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Print the project name/heading from README content.
|
|
||||||
pub fn print_project_heading(heading: &str) {
|
|
||||||
print!(
|
|
||||||
"{}>> {}{}",
|
|
||||||
SetForegroundColor(Color::DarkGrey),
|
|
||||||
heading,
|
|
||||||
ResetColor
|
|
||||||
);
|
|
||||||
println!();
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
@@ -13,10 +13,9 @@ use g3_core::Agent;
|
|||||||
use g3_core::ToolCall;
|
use g3_core::ToolCall;
|
||||||
|
|
||||||
use crate::commands::{handle_command, CommandResult};
|
use crate::commands::{handle_command, CommandResult};
|
||||||
use crate::display::{LoadedContent, print_loaded_status, print_project_heading, print_workspace_path};
|
use crate::display::{LoadedContent, print_loaded_status, print_workspace_path};
|
||||||
use crate::g3_status::G3Status;
|
use crate::g3_status::G3Status;
|
||||||
use crate::project::Project;
|
use crate::project::Project;
|
||||||
use crate::project_files::extract_project_heading;
|
|
||||||
use crate::simple_output::SimpleOutput;
|
use crate::simple_output::SimpleOutput;
|
||||||
use crate::input_formatter::reprint_formatted_input;
|
use crate::input_formatter::reprint_formatted_input;
|
||||||
use crate::template::process_template;
|
use crate::template::process_template;
|
||||||
@@ -199,11 +198,6 @@ pub async fn run_interactive<W: UiWriter>(
|
|||||||
if let Some(ref content) = combined_content {
|
if let Some(ref content) = combined_content {
|
||||||
let loaded = LoadedContent::from_combined_content(content);
|
let loaded = LoadedContent::from_combined_content(content);
|
||||||
|
|
||||||
// Extract project name from AGENTS.md or memory
|
|
||||||
if let Some(name) = extract_project_heading(content) {
|
|
||||||
print_project_heading(&name);
|
|
||||||
}
|
|
||||||
|
|
||||||
print_loaded_status(&loaded);
|
print_loaded_status(&loaded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user