Skip to content

Confirm a point-segmented mask without repeating its stereo copy - #1959

Merged
BryonLewis merged 4 commits into
mainfrom
fix/confirm-reruns-stereo-segment
Sep 24, 2026
Merged

BryonLewis merged 4 commits into
mainfrom
fix/confirm-reruns-stereo-segment

Conversation

@mattdawkins

Copy link
Copy Markdown
Member
  • `prediction-confirmed` re-ran `handleSegmentationPredictionReady` with the prediction's `controlPoints`, which is the trigger for the stereo copy and the mask auto-populate. A failing stereo transfer therefore showed its dialog once on the click and again on finalize.
  • Confirming now only commits the mask. Regression test emits ready → confirmed and expects a single stereo event.

🤖 Generated with Claude Code

mattdawkins and others added 2 commits September 21, 2026 22:56
The confirm event re-sent the last prediction with its click points, so the other-camera segmentation, and any error dialog, ran twice.
Selecting a different detection clears the segmentation recipe through
resetPoints, which marked the recipe as reset by the user. On Windows the
contextmenu of the right-click that selected the detection arrives after
it has entered Point edit mode, and handleConfirmRecipe took that mark as
a request to finalize, deselecting the detection at once. Clear the
recipe on a selection change without counting it as a user reset.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
mattdawkins added a commit that referenced this pull request Sep 23, 2026
# Conflicts:
#	client/dive-common/use/useModeManager.spec.ts
…tion

Clearing the recipe on a selection change without marking it as a user
reset left a right-click that placed no points doing nothing. Remember
which mouse press entered edit mode instead: the contextmenu of that press
(delivered after mouseup on Windows) is ignored, and any later right-click
with nothing placed finalizes the detection as before.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@BryonLewis
BryonLewis merged commit 1b47fd9 into main Sep 24, 2026
3 checks passed
@BryonLewis
BryonLewis deleted the fix/confirm-reruns-stereo-segment branch September 24, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants