feat(threads): add cross-provider conversation forks - #11096
Closed
fabianclain wants to merge 1 commit into
Closed
fabianclain wants to merge 1 commit into
fabianclain wants to merge 1 commit into
Conversation
Member
|
Thanks for the PR. We're not taking changes to the orchestration and provider layers right now: that part of the server is being rewritten for V2, and merging into the current code would either conflict with or be thrown away by that work. Closing for now. If this is still an issue once V2 lands, please reopen (or open a fresh PR against the new code) and we'll take a proper look. |
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.
When a provider's quota is exhausted, users need a way to continue their conversation with another provider without changing the original session. This adds a manual conversation fork on web, desktop, and mobile: choose a provider/model, create a new thread, and open it after the transcript handoff is recorded.
The environment reads the full persisted user/assistant history and carries it as a child-owned transcript attachment through the existing provider turn flow. The new session does not reuse the source resume cursor or modify the source session. Forks retain textual source identification, support retries and forks of forks, and require no database migration. Older servers do not expose the action.
The child displays the handoff and attachment rather than cloned historical bubbles. Binary attachments, tool activity, provider internals, and checkpoint history are excluded. The source must have no active or pending turn; transcript size, provider permissions, and context capacity still apply. Both threads share the workspace.
Related to #3797, which describes switching within the original conversation. This implementation creates a separate thread. Potential overlap with the orchestration work in #2829 needs maintainer review.
Validation:
Before marking ready for review:
Model/harness: GPT-6 / Codex, with native subagents.