Skip to content

feat(app): show meeting screenshots on conversation detail - #19887

Merged
Git-on-my-level merged 8 commits into
mainfrom
lane/screen-evidence-mobile
Sep 30, 2026
Merged

Git-on-my-level merged 8 commits into
mainfrom
lane/screen-evidence-mobile

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Meeting screenshots now show on mobile conversation detail — the mobile twin of the macOS note strip (MeetingNoteScreenshotViews.swift) and the web ConversationDetailPanel / useScreenFrames. Part of the "screen evidence, one pass, every surface" program.

  • "What was on screen" section in the Summary tab, after the note's own sections (where the Mac places its strip): a horizontal strip of thumbnails with captions, banner frame first (mobile has no header banner).
  • Hidden when the set is empty, when the fetch fails (typed ApiFailure or anything thrown), or when meeting_note_screenshots_enabled is off (the owner route already answers that with an empty set). Never an error card.
  • Tap opens the existing MediaViewerPage across the whole set (swipe, zoom, share); full-size bytes load lazily per page.
  • Long-press opens the standard showOmiRowMenu (Open / Delete, per ux-contract §4); Delete confirms with showOmiConfirm(destructive: true), calls DELETE /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.
  • Signed-URL expiry (60 min): the set is re-fetched 2 min before url_expires_at while 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.
  • Lazy decode: ListView builder (only visible tiles built) and ResizeImage at tile pixel size.

Wire

  • New screen_frames group in backend/scripts/generate_dart_models.py → app/lib/backend/schema/gen/screen_frames_wire.g.dart (schemas were already in app-client-openapi.json; no backend route or spec change).
  • app/lib/backend/http/api/screen_frames.dart: typed executeApi GET/DELETE.

l10n

4 keys via scripts/l10n.py add across 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).
  • Visual audit scenario 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 by visual_audit_smoke_test.dart in test.sh.
  • Existing detail-page tests (conversation_detail_initial_tab_test, conversation_action_analytics_test, semantics_baseline_test, surface_timer_after_dispose_test) and c3_*_production_wiring_test pass.
  • generate_dart_models.py --all --check, l10n.py check, check_mobile_ux_contract.py OK.

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)

  1. Screen readers: tiles had their gestures with excludeFromSemantics, so VoiceOver/TalkBack could not open or delete a frame. The tile's Semantics node now carries onTap plus Open and Delete custom actions.

  2. 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.

  3. 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.

  4. 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.

  5. 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's useScreenFrames has hit the same shape).

🤖 Generated with Claude Code

Git-on-my-level and others added 2 commits September 30, 2026 10:03
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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-30T04:02:40.792678Z 1410c46 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +99 to +100
case ApiSuccess(:final data):
_adopt(data);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +201 to +203
case ApiSuccess(:final data):
// The server's set, not a local prediction: it may have promoted another frame to banner.
_adopt(data);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +101 to +104
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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Git-on-my-level and others added 2 commits September 30, 2026 10:26
- 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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +218 to +219
_generation++;
_adopt(data);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +128 to +129
final expiresAt = set?.urlsExpireAt;
if (expiresAt == null) return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +116 to +120
executeApi(
request: ApiRequest(
url: '${_screenshotsUrl(conversationId)}/${Uri.encodeComponent(frameId)}',
method: 'DELETE',
),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Git-on-my-level and others added 4 commits September 30, 2026 10:41
…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]>
@Git-on-my-level
Git-on-my-level merged commit 3850247 into main Sep 30, 2026
55 of 57 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/screen-evidence-mobile branch September 30, 2026 05:36
Git-on-my-level added a commit that referenced this pull request Sep 30, 2026
…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]>
xyz-is-best added a commit to xyz-is-best/omi that referenced this pull request Sep 30, 2026
`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]>
Git-on-my-level added a commit that referenced this pull request Sep 30, 2026
#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]>
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