Repository navigation
Reject --plan for providers without a plan action - #6473
Merged
Merged
Conversation
`bb thread spawn --plan` and `bb thread tell --plan` prefix the message with bb's builtin /plan mention for every provider. The UI only offers plan for providers whose declaration has a plan composer action, but the server accepted the mention anyway, so Pi and ACP threads received the literal "/plan ..." text with no plan mode and no approval card. Thread create and send now refuse a builtin /plan mention for such a provider with a 400 naming the provider. Fixes #3833 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
Fixes #3833: CLI spawn/tell --plan produces a structured builtin plan mention, but the server accepted it even when the provider declared no plan composer action. Current main still accepts these requests: the new create regression resolves to a thread, and the send regression resolves to { ok: true, delivery: "sent" } instead of rejecting.
What changed
Thread create and send reject unsupported structured plan requests with HTTP 400 invalid_request and a provider-specific message advising removal of --plan. Creation validates after catalog fallback selects the effective provider. This server gate also covers SDK callers using the same structured command. The CLI messaging guide documents the rejection.
The only intended visible behavior change is rejecting unsupported structured plan requests (including Pi and ACP). Providers declaring plan support still accept them; manually typed /plan text remains literal text. No wire fields, daemon protocol version, or SDK signatures change.
How you verified
Fixes #3833
🤖 Generated with Claude Code