From 85e64b513445c6fa06e7ffaea49a5fc59e2d86c6 Mon Sep 17 00:00:00 2001 From: claude Date: Tue, 23 Jun 2026 00:28:16 +0000 Subject: [PATCH] feat: display agent name alongside label in terminal title and list output When a label is set (e.g. "bob"), the display becomes "bob (claude-implementer)" so the agent type is always visible. Affects all three backends (docker, macos-container, smolmachines) and the `cli.py list active` output. Closes #243 --- bot_bottle/backend/docker/launch.py | 2 +- bot_bottle/backend/macos_container/launch.py | 2 +- bot_bottle/backend/smolmachines/launch.py | 2 +- bot_bottle/cli/list.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bot_bottle/backend/docker/launch.py b/bot_bottle/backend/docker/launch.py index b247e1e..c753e1f 100644 --- a/bot_bottle/backend/docker/launch.py +++ b/bot_bottle/backend/docker/launch.py @@ -176,7 +176,7 @@ def launch( agent_command=plan.agent_command, agent_prompt_mode=plan.agent_prompt_mode, agent_provider_template=plan.agent_provider_template, - terminal_title=plan.spec.label or plan.spec.agent_name, + terminal_title=f"{plan.spec.label} ({plan.spec.agent_name})" if plan.spec.label else plan.spec.agent_name, terminal_color=plan.spec.color, agent_workdir=plan.workspace_plan.workdir, ) diff --git a/bot_bottle/backend/macos_container/launch.py b/bot_bottle/backend/macos_container/launch.py index f9fe7a7..a877bd7 100644 --- a/bot_bottle/backend/macos_container/launch.py +++ b/bot_bottle/backend/macos_container/launch.py @@ -112,7 +112,7 @@ def launch( agent_command=plan.agent_command, agent_prompt_mode=plan.agent_prompt_mode, agent_provider_template=plan.agent_provider_template, - terminal_title=plan.spec.label or plan.spec.agent_name, + terminal_title=f"{plan.spec.label} ({plan.spec.agent_name})" if plan.spec.label else plan.spec.agent_name, terminal_color=plan.spec.color, agent_workdir=plan.workspace_plan.workdir, ) diff --git a/bot_bottle/backend/smolmachines/launch.py b/bot_bottle/backend/smolmachines/launch.py index 36c6785..20c614b 100644 --- a/bot_bottle/backend/smolmachines/launch.py +++ b/bot_bottle/backend/smolmachines/launch.py @@ -104,7 +104,7 @@ def launch( agent_command=plan.agent_command, agent_prompt_mode=plan.agent_prompt_mode, agent_provider_template=plan.agent_provider_template, - terminal_title=plan.spec.label or plan.spec.agent_name, + terminal_title=f"{plan.spec.label} ({plan.spec.agent_name})" if plan.spec.label else plan.spec.agent_name, terminal_color=plan.spec.color, agent_workdir=plan.workspace_plan.workdir, ) diff --git a/bot_bottle/cli/list.py b/bot_bottle/cli/list.py index 7e906fe..c651da4 100644 --- a/bot_bottle/cli/list.py +++ b/bot_bottle/cli/list.py @@ -55,7 +55,7 @@ def cmd_list(argv: list[str]) -> int: # Tab-separated keeps the format stable for shell pipelines. for b in active: services = ",".join(b.services) if b.services else "-" - display_name = b.label if b.label else b.agent_name + display_name = f"{b.label} ({b.agent_name})" if b.label else b.agent_name colored_name = _ansi_label(display_name, b.color) print(f"{b.backend_name}\t{b.slug}\t{colored_name}\t{services}") return 0