Use agent name as prompt in --agent --chat mode (e.g., "butler>")

Changed run_interactive() parameter from bool to Option<&str> agent_name.
When agent_name is Some, use it as the prompt instead of "g3>".
This commit is contained in:
Dhanji R. Prasanna
2026-01-16 13:58:45 +05:30
parent 2e6bef4b24
commit 1f6a5671b2
4 changed files with 15 additions and 7 deletions

View File

@@ -268,7 +268,7 @@ pub async fn run_agent_mode(
combined_content,
&workspace_dir,
new_session,
true, // from_agent_mode - skip session resume and verbose welcome
Some(agent_name), // agent name for prompt (e.g., "butler>")
)
.await;
}