Fix playground model selection and UI improvements - #1030
Merged
Conversation
- Update chatStateRef synchronously during render instead of in useEffect to prevent stale closure issues when user changes model picker - Use ref in sendAgentRequest to always get latest model/computer - Add user-friendly error messages when model or computer is not selected - Persist model/computer picker changes to storage for existing chats - Fix type errors: use status check directly instead of isVM for ComputerInfo Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
When creating a new chat from the sidebar, include the selected computer so the chat can be used immediately without manually selecting a sandbox. Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
When no VM is explicitly selected, prefer the first running VM over the first VM in the list. This ensures the iframe displays a usable VM. Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Pass the currently selected computer from the dropdown to the VM status banner, so it updates immediately when user selects an offline sandbox. Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Use smaller modal size when showing loading, empty, or no-screenshot states instead of always using the large viewer size. Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Contributor
|
@sarinali is attempting to deploy a commit to the Cua Team on Vercel. A member of the Team first needs to authorize it. |
- Pass model and computer from empty state picker to chat creation - Sync computer from global state when chat doesn't have one stored - Ensures existing chats without stored computer use the currently selected computer from the dropdown Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Contributor
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
ddupont808
approved these changes
Feb 6, 2026
This was referenced Jul 31, 2026
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
Test plan
🤖 Generated with Claude Code