fix(start): print error when no agents are defined
lint / lint (push) Failing after 1m50s
test / unit (pull_request) Failing after 38s
test / integration (pull_request) Successful in 17s

Previously start silently exited 0 when the manifest had no agents,
leaving the user with no feedback.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-07 13:18:28 -04:00
parent 8f9005582b
commit f6af70927f
+7
View File
@@ -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",