Repository navigation
fix(web): cloud chats keep the model you picked - #77
Merged
Merged
Conversation
The draft hands its selection to the box keyed by the host's account id (claude_work), but the box names its only Claude instance claudeAgent, so the box composer falls back to the provider default and drops the options. Extracts the handoff builder unchanged so the test drives the real flow. This test fails until the next commit. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The box provisioned for a cloud chat names each driver's account by the driver's default instance id (claudeAgent, codex, cursor). The handoff kept the manager's account id (claude_work), so the box composer found no saved selection for its instance and sent the provider default with no options. Re-key the handoff to the box's instance. The manager's account id is still sent to provision as the routing hint. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The handoff swapped the picked model for the host account's default when the host's catalog lacked it. The host's catalog reflects the host's CLI version, which says nothing about the box that runs the chat. Send the picked model and let the box's catalog resolve it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The pending Claude snapshot lists the whole catalog. When the probe then filtered models by CLI version, the merge appended the filtered ones back from the pending snapshot, so a model the CLI cannot run showed up last in the picker. Claude now keeps missing models only while its probe is pending or has failed, like Codex. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
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.
Problem
On a host that runs no agents locally, a new cloud chat ran on the provider's default model instead of the one picked in the draft. Picking Claude Opus 5.5 and pressing Enter started the chat on Claude Fable 5.1, and the picked options (effort, context window) were dropped too.
Root cause
The draft handed its model selection to the box keyed by the host's account id, for example
claude_work. The box names its one account per driver by the driver's default instance id (claudeAgent,codex,cursor), set inProvisionPreparation.ts. On the box, the composer resolved toclaudeAgent, found no saved selection under that key, and fell back to the provider default. Every host account whose id is not the driver default hit this.Two smaller problems made it worse:
Fix
buildCloudHandoffre-keys the selection todefaultInstanceIdForDriver(agentDriver)and keeps the model and options. The host account id still goes to provision as the routing hint.Mobile starts the machine first and opens the draft on the box, so it never carries a host selection across.
packages/client-runtimeonly passes the account id as the routing hint. Neither needed a change.The first commit adds a test that drives the draft store, provider-selection resolution, and effective-model derivation through a handoff, and fails before the fix.
Claude Opus 5.5 (1M context) in Claude Code.
🤖 Generated with Claude Code