Skip to content

Feature: allow switching provider within the same idle thread #8553

Backlog

Description

@daria443

Problem

Today, changing the provider in an existing thread's follow-up model picker only supports handing off to a new thread. In workflows where a user wants to switch between providers mid-task (for example, moving from Codex to Pi or an ACP agent when a provider hits capacity or a different model/harness is preferred), creating a new thread splits the conversation timeline, changes the thread ID, and separates recent/pinned thread organization.

Proposal

Allow switching providers in place on an idle or failed thread while preserving the thread ID, timeline, and workspace:

  1. Server / DB (PATCH /api/v1/threads/:id):
    • Accept providerId (optionally combined with model and reasoningLevel, and rejected if combined with unrelated metadata/session-option edits).
    • Guard against switching when the thread is active/starting/stopping, has turn-bound pending interactions, or has queued messages.
    • Validate target provider and model/reasoning override against the target provider's catalog before mutating state.
    • Stop/release the previous provider session, record a completed system/operation (provider_switch) event that acts as a provider-session identity boundary, and update providerId + execution overrides atomically.
    • On the next thread.start, inject a bounded historical conversation transcript (up to 100,000 characters, visibility: "agent-only") into the fresh provider session, and discard it on context clear.
  2. SDK & CLI:
    • Expose providerId on threads.update(...) and --provider <id> on bb thread update.
  3. UI (Follow-up Composer):
    • When the user selects another provider in the follow-up model picker (the existing handoff bar), show a Switch in this thread button alongside Handoff to new thread (disabled while the thread is running). Existing new-thread handoff behavior remains unchanged.

Working Prototype

I put together a working prototype on top of main (4d7a9af) with unit/API/UI tests and typechecks passing:

Per CONTRIBUTING.md, I am opening this issue first to check if this direction fits BB before opening a pull request. Happy to adjust the design or UI details based on maintainer feedback.

Activity

  1. added
    providers
    threads
    on Dec 2, 2026
  2. bb-slop-cop commented on Dec 2, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Type: Feature · Priority: Medium · Effort: High · Labels: providers, threads

    No PR opened: this adds a new capability rather than fixing a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    providersthreads

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions