Display claude-code executor as Claude Code (#305)

This commit is contained in:
Solomon
2025-07-21 10:13:58 +01:00
committed by GitHub
parent 13642be67f
commit 05c2e2a064
4 changed files with 6 additions and 6 deletions

View File

@@ -27,8 +27,8 @@ export const EDITOR_TYPES: EditorType[] = [
export const EXECUTOR_LABELS: Record<string, string> = {
"echo": "Echo (Test Mode)",
"claude": "Claude",
"claude-plan": "Claude Plan",
"claude": "Claude Code",
"claude-plan": "Claude Code Plan",
"amp": "Amp",
"gemini": "Gemini",
"charm-opencode": "Charm Opencode",

View File

@@ -1001,7 +1001,7 @@ mod tests {
.normalize_logs(claude_logs, "/tmp/test-worktree")
.unwrap();
assert_eq!(result.executor_type, "Claude");
assert_eq!(result.executor_type, "Claude Code");
assert_eq!(
result.session_id,
Some("499dcce4-04aa-4a3e-9e0c-ea0228fa87c9".to_string())

View File

@@ -54,7 +54,7 @@ impl ClaudeExecutor {
/// Create a new ClaudeExecutor with default settings
pub fn new() -> Self {
Self {
executor_type: "Claude".to_string(),
executor_type: "Claude Code".to_string(),
command: "npx -y @anthropic-ai/claude-code@latest -p --dangerously-skip-permissions --verbose --output-format=stream-json".to_string(),
}
}

View File

@@ -141,8 +141,8 @@ export const EDITOR_TYPES: EditorType[] = [
export const EXECUTOR_LABELS: Record<string, string> = {
"echo": "Echo (Test Mode)",
"claude": "Claude",
"claude-plan": "Claude Plan",
"claude": "Claude Code",
"claude-plan": "Claude Code Plan",
"amp": "Amp",
"gemini": "Gemini",
"charm-opencode": "Charm Opencode",