Repository navigation
feat(app): show meeting screenshots on conversation detail - #19887
Conversation
Adds a "What was on screen" strip to the mobile conversation summary, the
twin of the macOS note strip and the web detail panel. Reads the owner
route GET /v1/conversations/{id}/screenshots through generated wire DTOs
(new screen_frames group), banner frame first. Hidden when the set is
empty, the fetch fails, or the account setting is off. Tap opens
MediaViewerPage across the set (zoom, swipe, share); long-press offers
Open/Delete, and Delete confirms then calls the DELETE route and adopts
the server's set. Signed URLs are refreshed before expiry, before opening
a stale set, and once on a post-expiry thumbnail failure; thumbnails
decode at tile size through a lazy builder.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 28921bbd87
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| case ApiSuccess(:final data): | ||
| _adopt(data); |
There was a problem hiding this comment.
Ignore stale GET results after a deletion
If the expiry timer's GET is still in flight when the user deletes a screenshot, the DELETE can return and _adopt the newer set before this older GET completes; this unconditional adoption then restores the deleted frame in the strip, usually as a broken tile because its blob has been removed, until another refresh. The response already carries a monotonic revision, so stale fetch results should be fenced or the refresh and mutation should be serialized.
Useful? React with 👍 / 👎.
| case ApiSuccess(:final data): | ||
| // The server's set, not a local prediction: it may have promoted another frame to banner. | ||
| _adopt(data); |
There was a problem hiding this comment.
Recheck the account gate after deleting a frame
If the user disables meeting_note_screenshots_enabled on another device while this note remains open and then deletes one visible frame, this adopts and displays the DELETE response even though the gate is now off. Unlike the GET handler, delete_conversation_screenshot in backend/routers/screen_frames.py does not check the account setting before returning the remaining set, so this path also mints fresh signed URLs and can keep the other screenshots visible for another expiry interval; gate the mutation response or follow it with the gated GET.
Useful? React with 👍 / 👎.
| case ApiFailure(): | ||
| // A failed fetch leaves nothing trustworthy to draw: the previous set's URLs are either | ||
| // about to die or already dead. Hide rather than show broken tiles or an error. | ||
| _adopt(null); |
There was a problem hiding this comment.
Retain known frames after a transient refresh failure
When the scheduled pre-expiry refresh encounters a temporary transport or server failure, this branch immediately clears the previously loaded set, cancels its refresh timer, and leaves no retry path, so the screenshots disappear for the rest of the open detail session even after connectivity recovers. Preserve the known set at least until its URLs actually expire and provide a bounded or manual refresh instead of treating a refresh failure like an initial empty load.
AGENTS.md reference: app/AGENTS.md:L105-L109
Useful? React with 👍 / 👎.
- A refresh GET in flight across a screenshot delete could land after the delete committed and bring the deleted tile back. A generation counter, bumped when a fetch starts and when a delete commits, drops any response asked for before the newest start or commit. Tests force both orderings (refresh before / after the delete starts, resolving after it commits). - Tiles carried their gestures with excludeFromSemantics, so VoiceOver and TalkBack could not open or delete a frame. The tile's Semantics node now owns tap plus Open and Delete custom actions. - The strip scrolls edge to edge: the conversation page leaves the side margin to each tab, the Summary tab pads everything but the strip, and the strip's list padding aligns its first tile with the note text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mobile # Conflicts: # app/lib/l10n/app_ar.arb # app/lib/l10n/app_be.arb # app/lib/l10n/app_bg.arb # app/lib/l10n/app_bn.arb # app/lib/l10n/app_bs.arb # app/lib/l10n/app_ca.arb # app/lib/l10n/app_cs.arb # app/lib/l10n/app_da.arb # app/lib/l10n/app_de.arb # app/lib/l10n/app_el.arb # app/lib/l10n/app_en.arb # app/lib/l10n/app_es.arb # app/lib/l10n/app_et.arb # app/lib/l10n/app_fa.arb # app/lib/l10n/app_fi.arb # app/lib/l10n/app_fr.arb # app/lib/l10n/app_he.arb # app/lib/l10n/app_hi.arb # app/lib/l10n/app_hr.arb # app/lib/l10n/app_hu.arb # app/lib/l10n/app_id.arb # app/lib/l10n/app_it.arb # app/lib/l10n/app_ja.arb # app/lib/l10n/app_kn.arb # app/lib/l10n/app_ko.arb # app/lib/l10n/app_localizations.dart # app/lib/l10n/app_localizations_ar.dart # app/lib/l10n/app_localizations_be.dart # app/lib/l10n/app_localizations_bg.dart # app/lib/l10n/app_localizations_bn.dart # app/lib/l10n/app_localizations_bs.dart # app/lib/l10n/app_localizations_ca.dart # app/lib/l10n/app_localizations_cs.dart # app/lib/l10n/app_localizations_da.dart # app/lib/l10n/app_localizations_de.dart # app/lib/l10n/app_localizations_el.dart # app/lib/l10n/app_localizations_en.dart # app/lib/l10n/app_localizations_es.dart # app/lib/l10n/app_localizations_et.dart # app/lib/l10n/app_localizations_fa.dart # app/lib/l10n/app_localizations_fi.dart # app/lib/l10n/app_localizations_fr.dart # app/lib/l10n/app_localizations_he.dart # app/lib/l10n/app_localizations_hi.dart # app/lib/l10n/app_localizations_hr.dart # app/lib/l10n/app_localizations_hu.dart # app/lib/l10n/app_localizations_id.dart # app/lib/l10n/app_localizations_it.dart # app/lib/l10n/app_localizations_ja.dart # app/lib/l10n/app_localizations_kn.dart # app/lib/l10n/app_localizations_ko.dart # app/lib/l10n/app_localizations_lt.dart # app/lib/l10n/app_localizations_lv.dart # app/lib/l10n/app_localizations_mk.dart # app/lib/l10n/app_localizations_mr.dart # app/lib/l10n/app_localizations_ms.dart # app/lib/l10n/app_localizations_nl.dart # app/lib/l10n/app_localizations_no.dart # app/lib/l10n/app_localizations_pl.dart # app/lib/l10n/app_localizations_pt.dart # app/lib/l10n/app_localizations_ro.dart # app/lib/l10n/app_localizations_ru.dart # app/lib/l10n/app_localizations_sk.dart # app/lib/l10n/app_localizations_sl.dart # app/lib/l10n/app_localizations_sr.dart # app/lib/l10n/app_localizations_sv.dart # app/lib/l10n/app_localizations_ta.dart # app/lib/l10n/app_localizations_te.dart # app/lib/l10n/app_localizations_th.dart # app/lib/l10n/app_localizations_tl.dart # app/lib/l10n/app_localizations_tr.dart # app/lib/l10n/app_localizations_uk.dart # app/lib/l10n/app_localizations_ur.dart # app/lib/l10n/app_localizations_vi.dart # app/lib/l10n/app_localizations_zh.dart # app/lib/l10n/app_lt.arb # app/lib/l10n/app_lv.arb # app/lib/l10n/app_mk.arb # app/lib/l10n/app_mr.arb # app/lib/l10n/app_ms.arb # app/lib/l10n/app_nl.arb # app/lib/l10n/app_no.arb # app/lib/l10n/app_pl.arb # app/lib/l10n/app_pt.arb # app/lib/l10n/app_ro.arb # app/lib/l10n/app_ru.arb # app/lib/l10n/app_sk.arb # app/lib/l10n/app_sl.arb # app/lib/l10n/app_sr.arb # app/lib/l10n/app_sv.arb # app/lib/l10n/app_ta.arb # app/lib/l10n/app_te.arb # app/lib/l10n/app_th.arb # app/lib/l10n/app_tl.arb # app/lib/l10n/app_tr.arb # app/lib/l10n/app_uk.arb # app/lib/l10n/app_ur.arb # app/lib/l10n/app_vi.arb # app/lib/l10n/app_zh.arb
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b735eb9c4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| _generation++; | ||
| _adopt(data); |
There was a problem hiding this comment.
Serialize overlapping screenshot deletes
When a user confirms deletion of a second frame before the first DELETE finishes, both _confirmDelete calls remain active and each response is adopted unconditionally. The generation fence only orders GETs against a completed mutation; it does not order two DELETE responses, so an older, lower-revision response arriving last can restore the second deleted tile until the next refresh. Serialize/disable mutations while one is pending, or reject mutation responses older than the currently adopted revision.
Useful? React with 👍 / 👎.
| final expiresAt = set?.urlsExpireAt; | ||
| if (expiresAt == null) return; |
There was a problem hiding this comment.
Recheck empty sets while adjudication is pending
When this GET succeeds with an empty set before another surface finishes screenshot adjudication, urlsExpireAt is null and this return leaves no timer or other refresh path. This is realistic because macOS starts selection and adjudication when its conversation detail view loads; if mobile opens the completed conversation first, later-approved frames remain hidden for the lifetime of the kept-alive summary tab. Preserve adjudicatedAt from the wire response and perform a bounded recheck while it is null, without polling a settled empty set.
Useful? React with 👍 / 👎.
| executeApi( | ||
| request: ApiRequest( | ||
| url: '${_screenshotsUrl(conversationId)}/${Uri.encodeComponent(frameId)}', | ||
| method: 'DELETE', | ||
| ), |
There was a problem hiding this comment.
Avoid replaying an ambiguously completed delete
This DELETE inherits sendUncaughtApiCall's default automatic retry. If the backend removes the frame but the response is lost while being received, the retry reaches delete_conversation_screenshot after the frame is gone and returns 404; the widget then reports failure and retains the deleted frame locally even though its blob was removed. Disable transport retries for this mutation, make the endpoint return the current set when the frame is already absent, or follow an ambiguous/404 result with a GET.
Useful? React with 👍 / 👎.
…letes Two deletes in flight could answer out of order, and the older answer (the set after only the first delete) restored the tile the second one removed. Every GET and DELETE answer is now compared with the server's monotonic revision: a set older than the one on screen is never drawn; revision 0 (setting off, or nothing ever approved) always hides. Deletes also run one at a time, and a delete whose frame is already gone when its turn comes sends nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…etting went off If a refresh during a delete answered with the gated empty set (revision 0: the setting was switched off elsewhere), the delete's own answer, which the route builds without consulting the setting, restored tiles. Such an answer is now discarded and the set re-read through the gated GET. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ngerprint #19911 and #19887 merged within minutes; the generated model predates the new optional field, so the Dart schema check on main is stale. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`generate_dart_models.py --all --check` fails on main: the `screen_frames` group added while BasedHardware#19911/BasedHardware#19882/BasedHardware#19887 merged together left `GeneratedConversationScreenFrameSet` without `trustedSelectionFingerprint`, so the generated file no longer matches the committed app-client spec. Regenerated output adds only that field. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <[email protected]>
#19931) * chore(deploy): graduate screen evidence and rich meeting notes to prod Turn on calendar/OCR context, rich notes, screen text, and screenshot images for notes on listen, pusher, backend and backend-sync; wire the prod screen-frames bucket everywhere and enable frame egress with the signing secret on Cloud Run backend. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(deploy): assert graduated prod meeting-context and screen-evidence flags Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(app): regenerate screen_frames Dart wire for trusted_selection_fingerprint #19911 and #19887 merged within minutes; the generated model predates the new optional field, so the Dart schema check on main is stale. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
Meeting screenshots now show on mobile conversation detail — the mobile twin of the macOS note strip (
MeetingNoteScreenshotViews.swift) and the webConversationDetailPanel/useScreenFrames. Part of the "screen evidence, one pass, every surface" program.ApiFailureor anything thrown), or whenmeeting_note_screenshots_enabledis off (the owner route already answers that with an empty set). Never an error card.MediaViewerPageacross the whole set (swipe, zoom, share); full-size bytes load lazily per page.showOmiRowMenu(Open / Delete, per ux-contract §4); Delete confirms withshowOmiConfirm(destructive: true), callsDELETE /v1/conversations/{id}/screenshots/{frame_id}, and adopts the set the server returns (it may promote a new banner). Failure is a toast; the strip stays.url_expires_atwhile the note is open, before the viewer opens on a stale set, and once when a thumbnail fails after expiry. A set that arrives already stale gets no timer and no error-refresh, so there is no fetch loop.ListViewbuilder (only visible tiles built) andResizeImageat tile pixel size.Wire
screen_framesgroup inbackend/scripts/generate_dart_models.py→app/lib/backend/schema/gen/screen_frames_wire.g.dart(schemas were already inapp-client-openapi.json; no backend route or spec change).app/lib/backend/http/api/screen_frames.dart: typedexecuteApiGET/DELETE.l10n
4 keys via
scripts/l10n.py addacross all 49 locales:meetingScreenshotsTitle,meetingScreenshotFallbackCaption,deleteMeetingScreenshotTitle,deleteMeetingScreenshotMessage.Verification
flutter test test/widgets/conversation_screenshots_section_test.dart: 22 widget/unit tests (setting-off mid-delete, revision ordering and serialized deletes, screen-reader tap and Open/Delete actions, refresh/delete races in both orderings, edge-to-edge strip, empty/failure/throw hidden, banner-first order + caption fallback, decode de-dupes the banner, tap opens viewer at index, stale set re-fetched before open, timer refresh before expiry, no loop on stale arrival, delete confirm/cancel, last delete hides section).conversation-detail-screenshots(loopback fixture backend serves the set and synthetic PNGs drawn at runtime: video call, slide, editor, doc; rendered as iOS), light and dark; also covered byvisual_audit_smoke_test.dartintest.sh.conversation_detail_initial_tab_test,conversation_action_analytics_test,semantics_baseline_test,surface_timer_after_dispose_test) andc3_*_production_wiring_testpass.generate_dart_models.py --all --check,l10n.py check,check_mobile_ux_contract.pyOK.Layer: widget tests and headless flutter-tester renders. Not verified: on a device or simulator, against a dev backend with real signed GCS URLs, or share-sheet behavior.
Product invariants affected
none
Review fixes (Codex Sol)
Screen readers: tiles had their gestures with
excludeFromSemantics, so VoiceOver/TalkBack could not open or delete a frame. The tile'sSemanticsnode now carriesonTapplus Open and Delete custom actions.Refresh racing a delete: an in-flight refresh GET could land after a delete committed and resurrect the tile. A generation counter bumped at fetch start and at delete commit drops any response asked for before the newest start/commit. Tests force both orderings (refresh starts before / after the delete starts, resolving after it commits) plus refresh-lands-first; they fail with the fence removed.
Edge-to-edge strip: the conversation page now leaves its side margin to each tab (Transcript and Tasks are wrapped in the same 16 pt padding, unchanged visually); the Summary tab pads every sliver except the strip, whose list padding aligns the first tile with the note text.
Re-review — concurrent deletes: two deletes in flight could answer out of order and the older answer restored the later-deleted tile. Every response (GET and DELETE) is now ordered by the server's monotonic
revision: a set older than the one on screen is never drawn (revision 0 — the setting-off/empty answer — always hides). Deletes are also serialized, and one whose frame is already gone when its turn comes sends nothing. Self-reviewed the other response paths: fetch results stay generation-fenced, failures only hide, the viewer and share read the current set after awaiting the refresh. Tests: two deletes answering in either order, serialization, a delete answer older than an already-landed refresh, and revision-0 hiding; the first three fail on the previous head.Third pass — setting switched off mid-delete: a gated refresh (revision 0, empty) could land during a delete, and the delete's answer — which the route returns without consulting the setting — then restored tiles. If a revision-0 set was drawn while a delete was in flight, the delete's answer is discarded and the set is re-read through the gated GET. Test fails on the previous head. (The backend lane is gating the DELETE response separately.)
Failure class (fixes)
Failure-Class: new
Adds
.github/failure-classes/FC-read-in-flight-across-delete-resurrects-row.json— a read issued before a delete commits must not be adopted after it (web'suseScreenFrameshas hit the same shape).🤖 Generated with Claude Code