You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove UpdateOptions from SetShape handler - Now SetShape only updates current_shape and calls update_dynamic_hints directly for hint updates, without touching options.shape_type.
Add SyncShapeWithOptions message - When activating the Shape tool, sync current_shape to match options.shape_type. This ensures the drawing state matches the dropdown selection, especially when returning from Line/Rectangle/Ellipse alias tools.
Thanks for fixing these two bugs. But I have a concern, which is that your implementation involved new logic, when in both cases, this already used to work and they each broke as a regression at some point in the past few months. I would expect an implementation should track down what broke and then fix what existing logic already performed the functionality for these two issues, rather than leaving behind the other logic in some unknown state and building new logic. Could you please spend some time to go back and check which commit broke both of these issues and post those PRs or commit hashes in a comment here, and then investigate what specific changes within each PR resulted in the regression, and then checking what minimal changes are required to fix the issues and seeing if the ones you did here are redundant?
Keavon
changed the title
persist shape tool dropdown selection
Fix Shape tool type dropdown not persisting selection and not excluding Line/Rectangle/Ellipse
Feb 12, 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
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.
This regression was introduced in #2914 (commit 523132d)
In the SetShape handler, this line was added:
responses.add(ShapeToolMessage::UpdateOptions(ShapeOptionsUpdate:since the setShape was being called with polygon always , the added UpdateOptions call overwrites options.shape_type
below is the call
responses.add(ShapeToolMessage::SetShape { shape: ShapeType::Polygon });
Below are the two main fixes from this PR
Screen.Recording.2026-02-16.at.6.59.52.PM.mov
Fixes the issue from this discussion
https://discord.com/channels/731730685944922173/731738914812854303/1469590633361707204