refactor(core,tui): use 'code' as default local agent name instead of 'codex'\n\n- core/slash_commands: default models list now includes "code" (not "codex")\n- TUI: default available_agents shows "code"\n- Help text: update example agents list to ...,code

This commit is contained in:
James Peter
2025-09-15 20:10:11 +10:00
parent e9a3b59074
commit 60408ab16f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ fn get_default_models() -> Vec<String> {
"claude".to_string(),
"gemini".to_string(),
"qwen".to_string(),
"codex".to_string(),
"code".to_string(),
]
}
+2 -2
View File
@@ -4210,7 +4210,7 @@ impl ChatWidget<'_> {
}
lines.push(Line::from(""));
lines.push(Line::from("Manage with:".bold()));
lines.push(Line::from(" /agents add name=<name> read-only=<true|false> agents=claude,gemini,qwen,codex"));
lines.push(Line::from(" /agents add name=<name> read-only=<true|false> agents=claude,gemini,qwen,code"));
lines.push(Line::from(" /agents edit name=<name> [read-only=..] [agents=..] [orchestrator=..] [agent=..]"));
lines.push(Line::from(" /agents delete name=<name>"));
lines.push(Line::from(" Values with spaces require quotes in the composer."));
@@ -4353,7 +4353,7 @@ impl ChatWidget<'_> {
pub(crate) fn show_agents_settings_ui(&mut self) {
use crate::bottom_pane::agents_settings_view::AgentsSettingsView;
let available_agents: Vec<String> = if self.config.agents.is_empty() {
vec!["claude".into(), "gemini".into(), "qwen".into(), "codex".into()]
vec!["claude".into(), "gemini".into(), "qwen".into(), "code".into()]
} else {
self.config
.agents