Skip to content

Do not pass the claude model alias to a bravebot review session - #215

Merged
bbondy merged 1 commit into
masterfrom
review-agent-bravebot-model2
Nov 9, 2026
Merged

bbondy merged 1 commit into
masterfrom
review-agent-bravebot-model2

Conversation

@netzenbot

@netzenbot netzenbot commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

With reviewer.agent set to bravebot, every scheduled review and ping reply died before it started:

BB1003: no model service is configured yet
A service is configured, but the model in force is one of Brave's: name one of your own ...

scripts/lib/review-agent.sh passed BOT_REVIEW_MODEL (default sonnet, a claude alias) to bravebot as --model sonnet. bravebot resolves that to a Brave model and refuses it when the operator has a service of their own. brave/bravebot#3832 and #3833 hit it 5 times each and were then skipped by the attempt cap.

Reproduce

  1. With a model service of your own in ~/.bravebot/settings.json: bravebot "say ok" --model sonnet fails with BB1003.
  2. bravebot "say ok" prints ok.

Fix

The bravebot branch of bot_review_agent_cmd ignores the claude alias. It passes --model only when bot.bravebotModel is set, so otherwise bravebot's own model setting applies. The claude branch is unchanged. Documented in docs/configuration.md.

Tests

tests/test_agent_config.py gains a test: no --model and no sonnet by default, and my-model when BOT_BRAVEBOT_MODEL is set. Full suite: 1701 passed, 4 skipped.

review-agent.sh handed BOT_REVIEW_MODEL (default 'sonnet') to bravebot as
--model. bravebot resolves that to a Brave model and exits with BB1003 when
the operator has a service of their own configured, so every scheduled review
and ping reply failed before it started. Use bot.bravebotModel, or nothing, so
bravebot's own model setting applies.
@bbondy
bbondy merged commit 7dadfa1 into master Nov 9, 2026
3 checks passed
@bbondy
bbondy deleted the review-agent-bravebot-model2 branch November 9, 2026 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants