fix: allow camera roll in bridge photo picker - #88
Merged
Conversation
iOS Safari treats capture=environment as camera-only, hiding Photo Library. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Intent
Bridge photo picker must offer the camera roll, not just the camera.
Captain field report (2026-08-19, on the now-working bridge): tapping "send a photo" forces the live camera; he cannot pick existing screenshots or camera-roll photos. Cause: the file input in bin/fm-bridge-view.py carries capture="environment", which on iOS Safari suppresses the Photo Library / Choose File options.
Surgical change: remove the capture attribute from that input and keep the accept list. On iOS this makes the tap offer Photo Library, Take Photo, and Choose File - camera still available, library now too. Adjust any test or docs line that mentions the capture behavior (docs/bridge-view.md).
Scope is exactly this attribute and its documentation.
What Changed
captureattribute so iOS offers the Photo Library alongside camera and file options.captureis absent.Risk Assessment
✅ Low: The surgical change exactly removes the capture attribute while preserving the image accept list, with aligned documentation and regression assertions; no material issues were found.
Testing
Inspected the complete three-file scope, ran the focused bridge suite successfully, then exercised login and authenticated page delivery end-to-end and rendered the served HTML at a mobile viewport; runtime inspection confirmed the image accept list remains while both capture attribute and property are absent. Reviewer-visible rendered HTML is attached; a PNG was attempted, but the browser interface reported a path without producing the file, so the portable rendered HTML is the visual evidence artifact.
Evidence: Authenticated mobile bridge picker surface
Evidence: Rendered picker runtime properties
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
git diff --unified=80 b66ccbbe83467d321dc8562668ecadc1a3d056ee..be36d2ebde8784bae734ad59a7136a34eab2c995 -- bin/fm-bridge-view.py docs/bridge-view.md tests/fm-bridge-view.test.shtests/fm-bridge-view.test.shStartedbin/fm-bridge-view.sh serve --host localtest.me --port 18766with an isolated evidence home, authenticated through/login, and fetched the resulting bridge page through/Renderedbridge-picker.htmlat a 390×844 mobile viewport and inspected#photo:type=file, full image accept list retained,captureAttribute=null, andcaptureProperty=nullgit status --shortandgit rev-parse HEADconfirmed a clean worktree at target commitbe36d2ebde8784bae734ad59a7136a34eab2c995✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.