Skip to content

Promote to production: camera switch + duplicate-button fixes - #52

Merged
slaveofcode merged 2 commits into
mainfrom
develop
Jul 31, 2026
Merged

Promote to production: camera switch + duplicate-button fixes#52
slaveofcode merged 2 commits into
mainfrom
develop

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Fixes switch-camera device-busy error (release-before-open + fallback) and duplicate result buttons in Camera Capture (#51). 481 tests pass, lint clean, build green. Merging deploys to production.

Kresna and others added 2 commits July 31, 2026 10:48
1. useCamera released the old stream only AFTER acquiring the new one, so
   switching threw NotReadableError (device busy) → 'Could not start the camera',
   and the error UI hid the switch button (stuck). Now release before re-opening,
   and if a switch fails, fall back to the previous camera so the user is never
   stranded.
2. CameraTool rendered its own Copy/Edit-in-Annotator buttons on top of the ones
   ImageResult already provides — removed the duplicates (keep Retake).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
fix(camera): switch-camera error + duplicate result buttons
@slaveofcode
slaveofcode merged commit 5af204f into main Jul 31, 2026
2 checks passed
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.

1 participant