Add cross-provider thread takeover - #1600
Open
davekilleen wants to merge 13 commits into
Open
Conversation
Add SDK handoff adapters and `bb thread handoff` so agents can move a thread to another provider or model through the same server-owned takeover path.
Replace the old compose shortcut with a Bring in another model drawer that creates a replacement thread through the server-owned handoff path and shows truthful takeover status on the new thread.
The new mutation wrote query cache directly and imported query keys, which the app cache-owner boundary tests reject. Seed replacement status through a dedicated owner instead.
Author
|
Post-rebase verification update. The takeover mutation was writing React Query cache directly. The full app suite caught that ( Fresh evidence on this tip:
Still needed before merge: reviewer approval, plus two live canaries on a running build of this branch (Codex → Claude Code and back).
|
davekilleen
marked this pull request as ready for review
August 14, 2026 09:21
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.
Summary
BB threads are stuck on one provider. This change lets a user or agent move an existing thread to another provider/model in one action.
Take over creates a replacement thread in the same workspace, opens it immediately, and archives the old thread only after the new one has actually started. If startup fails, the original thread stays live.
The same server operation powers the app, SDK, and CLI.
How to try it
Agent surface:
Not in this PR
Verification
Re-run on the rebased tip (
c3097ad0a):timeline-in-turn-window), then 21/21 passed isolated. No timeline files in this diff. Protocol version unchanged at 119.c3097ad0a. Focused takeover + cache-owner tests: 9/9. Earlier focused drawer/banner/query set: 34/34.Still outstanding before merge:
Test plan
bb thread handoff --self --provider … --model … --jsonfrom an agent thread.