From f6af70927f49496aa9b820bc8e615e84cdbead39 Mon Sep 17 00:00:00 2001 From: didericis Date: Tue, 7 Jul 2026 13:18:28 -0400 Subject: [PATCH] fix(start): print error when no agents are defined Previously start silently exited 0 when the manifest had no agents, leaving the user with no feedback. Co-Authored-By: Claude Sonnet 4.6 --- bot_bottle/cli/start.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bot_bottle/cli/start.py b/bot_bottle/cli/start.py index 0d9a388..0fe3e55 100644 --- a/bot_bottle/cli/start.py +++ b/bot_bottle/cli/start.py @@ -64,6 +64,13 @@ def cmd_start(argv: list[str]) -> int: agent_name: str | None = args.name if agent_name is None: + if not manifest.all_agent_names: + print( + "bot-bottle: no agents defined. " + "Add an agent to ~/.bot-bottle/agents/ or ./bot-bottle/agents/ to get started.", + file=sys.stderr, + ) + return 1 agent_name = tui.filter_select( manifest.all_agent_names, title="Select agent",