Repository navigation
Description
The Pi provider can misinterpret a slash-containing raw model ID as a provider/model reference. When Pi resolves the same string as a raw model ID under another provider, BB rejects startup because the provider in Pi's reported model differs from the one BB expected.
Versions and environment
- BB CLI 0.44.0 (desktop app)
- Pi 0.87.1
- macOS 26.7
- BB provider:
pi
Steps to reproduce
On a machine where Pi's model catalog includes the raw model ID openai/gpt-6-luna, served by vercel-ai-gateway:
- Confirm the catalog entry:
bb provider models pi --environment "$BB_ENVIRONMENT_ID" --json - Spawn a Pi thread with that raw model ID:
bb thread spawn \ --project <project-id> \ --environment "$BB_ENVIRONMENT_ID" \ --provider pi \ --model openai/gpt-6-luna \ --permission-mode full \ --prompt 'Reply with exactly: OK' \ --json
- Inspect the created thread:
bb thread log <thread-id> --all --json
The catalog and model availability are provider/account dependent; use an equivalent slash-containing raw model ID if this exact model is not available.
Expected vs actual
Expected: BB resolves the model reference against Pi's catalog and starts the matching provider/model pair, or returns a clear resolution error.
Actual: startup fails with:
Pi did not start with model "openai/gpt-6-luna" (it chose "vercel-ai-gateway/openai/gpt-6-luna"). Check that the provider is authenticated.
The model ID is the same; the provider differs.
Evidence
- Reproduced using
bb thread spawnwith providerpiand modelopenai/gpt-6-luna. - In the reproduction, the Pi catalog's canonical model was
vercel-ai-gateway/openai/gpt-6-luna, withrouteProviderId="vercel-ai-gateway". resolvePiModelsplits a slash-containing string at its first slash.- Pi launch arguments and strict startup verification.
- A read-only check using Pi 0.87.1's model resolver and the catalog resolved
openai/gpt-6-lunaas providervercel-ai-gateway, IDopenai/gpt-6-luna.
Suggested fix
Resolve model references against Pi's catalog deterministically. Prefer an exact canonical provider/model match. Otherwise, allow a unique exact match against the entire raw model ID, including slashes; report ambiguity or no match instead of guessing. Pass the resolved provider and raw model ID to Pi explicitly, retaining BB's strict startup verification.
Add regression tests for canonical references, slash-containing raw IDs, ambiguous raw IDs, direct-route precedence, and cold versus warm catalog behavior.
What you ruled out
- Using the canonical catalog value
vercel-ai-gateway/openai/gpt-6-lunaavoids this particular mismatch. - #1123 is related but distinct: it covers ambiguous bare model IDs shared by multiple providers. This report concerns a slash-containing raw ID parsed as a provider-qualified reference.
Suggested priority and effort
Medium: a valid raw model ID can fail at startup when it contains a slash. The canonical provider/model value is a workaround. The likely fix is localized to Pi model resolution and regression coverage.
Agent generated but every line reviewed and edited by me.
Activity
bb-slop-cop commentedon Oct 2, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotproviders,provider-pi, andconfirmed-repro.git diff --checkpass.