fix: expose nickname helper to agent control

This commit is contained in:
jif-oai
2026-06-05 15:41:12 +02:00
parent 3c4619d386
commit b6a82f5d30
+1 -1
View File
@@ -15,7 +15,7 @@ fn default_agent_nickname_list() -> Vec<&'static str> {
.collect()
}
fn agent_nickname_candidates(config: &Config, role_name: Option<&str>) -> Vec<String> {
pub(super) fn agent_nickname_candidates(config: &Config, role_name: Option<&str>) -> Vec<String> {
let role_name = role_name.unwrap_or(DEFAULT_ROLE_NAME);
if let Some(candidates) =
resolve_role_config(config, role_name).and_then(|role| role.nickname_candidates.clone())