Repository navigation
feat(web): new threads show their project's cad, and the first message keeps the view - #214
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
A new thread's right panel said "Start a thread to open its CAD view." Opening CAD on a draft created an empty thread just to show the model.
Now a draft has its own CAD viewer for its project. View changes on the draft (hidden parts, explode, camera) stay with the draft. The first message carries that view, and the server saves it as the new thread's view right after creating the thread and before the turn starts, so the agent sees what the user was looking at.
projectId, so a thread with no server row yet can load its project's CAD. An existing thread's own project still wins, and a mismatch is refused.cadUserView. If the save is refused (for example after a sync), the turn still runs./draft/.Proof:
local-cad-project-e2e.tsnow loads the model on the/draft/URL, explodes it there, sends the first message, and checks that the new thread's saved view hasexplosion: 1and the panel still shows it exploded. Typecheck, lint, andCadPanel.test.tsxpass. The Onshape and remote-load scripts were updated but not run, since they need Onshape credentials and a LAN setup.Reviewed with sol-loop: 2 rounds with gpt-6.1-sol. Sol verdict: approved
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.