Repository navigation
feat(web): meeting screenshots on the public share page; refresh expiring URLs in the web app - #19882
Conversation
The shared-conversation page (h.omi.me/conversations/<id>) now renders the
approved meeting screenshots from the public
GET /v1/conversations/{id}/shared/screenshots route in the Notes tab, after
the notes and action items: the banner frame first, then the strip.
- Fetched server-side per request with cache: 'no-store' in parallel with the
note (the page is already dynamic via headers()), so a cached page never
serves signed URLs past their 60-minute expiry. The client refetches through
the same server action shortly before url_expires_at, when a hidden tab
returns, and when an image fails to load, with a 30s floor between refetches.
- Accessible lightbox on Radix Dialog: focus trap, Esc, left/right arrows,
focus returns to the tile last shown. Sized to the frame's natural aspect
ratio and fit to the viewport without upscaling; an actual-size toggle when
the frame is larger than the fit.
- Plain lazy <img> with explicit width/height rather than next/image, so
expiring signed URLs are not proxied or cached by the image optimizer.
- Hidden entirely for an empty set or a failed fetch.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
useScreenFrames loaded the frame set once and never honoured url_expires_at, so a conversation panel left open past 60 minutes showed broken banner, strip and lightbox images. The hook now silently refetches (bypassing the 1-minute fetch cache) a margin before the earliest expiry, with a floor between refetches so a fast client clock cannot loop. 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: 02dd33870e
ℹ️ 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".
| const data = await getConversationScreenFrames(requestedId, { fresh: true }); | ||
| if (convIdRef.current === requestedId) setFrameSet(data); |
There was a problem hiding this comment.
Request genuinely new signed URLs during refresh
The fresh option only evicts the browser-side fetchWithCache entry, so this request does not actually guarantee fresh image URLs. The inspected backend path still calls storage._get_signed_url, which reuses each URL from Redis for almost the full 60-minute lifetime, while _to_api_frame stamps url_expires_at as 60 minutes from every response. Consequently, the refresh scheduled at T+58 minutes normally receives the original URLs (with roughly two minutes left) but records them as valid until T+118, and the signed-in components have no image-error retry, leaving a panel open past an hour with broken images for nearly another hour. The endpoint needs to bypass the server-side signed-URL cache for this refresh or return the cached URL's actual expiry.
Useful? React with 👍 / 👎.
| lastUrlRefreshAt.current = Date.now(); | ||
| try { | ||
| const data = await getConversationScreenFrames(requestedId, { fresh: true }); | ||
| if (convIdRef.current === requestedId) setFrameSet(data); |
There was a problem hiding this comment.
Prevent background refreshes from undoing frame mutations
If this automatic GET overlaps a delete, the GET can read the old frame set before the DELETE commits but resolve afterward; this unconditional setter then overwrites the authoritative DELETE response installed at lines 118-121 and makes the deleted frame reappear locally, usually with a now-404ing image, until another reload or refresh. The refresh needs an operation generation/revision check so a response started before a later mutation cannot replace that mutation's result.
Useful? React with 👍 / 👎.
| // A refresh can shrink or empty the set while the lightbox is open. | ||
| useEffect(() => { | ||
| if (openIndex === null) return; | ||
| if (tiles.length === 0) setOpenIndex(null); | ||
| else if (openIndex >= tiles.length) setOpenIndex(tiles.length - 1); | ||
| }, [tiles.length, openIndex]); |
There was a problem hiding this comment.
Clamp the lightbox index before deriving its open state
When a refresh shrinks a nonempty set while the last removed tile is open, the render preceding this effect computes current as null from the now-out-of-range openIndex, so the controlled Radix dialog closes; this effect only clamps the index after that commit and therefore reopens the dialog on the new last tile. The intervening close also prevents Radix's normal focus restoration and attempts to focus the removed shownIndex ref. Derive a valid index synchronously or update the index together with the refreshed set to avoid the close/reopen and focus loss.
Useful? React with 👍 / 👎.
A background signed-URL refresh still in flight when deleteFrame/deleteAll/ setSharingEnabled completed could land afterwards and overwrite the mutation's authoritative set, resurrecting deleted tiles (the conversation id still matched, and clearing the timer does not cancel a running request). Every load and mutation now bumps a generation counter; a refresh applies its response only if the generation is unchanged. Regression test reproduces the race with a deferred refresh response. Co-Authored-By: Claude Opus 5.5 <[email protected]>
An image onError within 30s of a renewal was discarded, leaving a broken image until the next expiry timer about an hour later. Refetches now go through createRefreshGate, which defers a cooldown request to the end of the cooldown (coalescing repeats), absorbs requests during a run, and is created per effect so StrictMode cannot leave a disposed gate in use. Unit tests drive the gate with an injected clock. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 49c2bb2ffb
ℹ️ 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".
| const requestedId = conversationId; | ||
| const timer = setTimeout(async () => { | ||
| lastUrlRefreshAt.current = Date.now(); | ||
| const generation = setGeneration.current; |
There was a problem hiding this comment.
Snapshot the generation before overlapping mutations
When a delete starts just before this timer fires, the mutation has already incremented setGeneration, so the refresh captures that new value here. If its GET reads before the delete commits but resolves after the DELETE response, the equality check still succeeds and restores the deleted frame. Fresh evidence in the current fix is that the generation is captured inside the timer callback, so it only handles the previously tested refresh-before-delete ordering; snapshot it when scheduling the refresh or otherwise ensure any overlapping mutation invalidates the response regardless of which request starts first.
Useful? React with 👍 / 👎.
Two ways a stale GET could still bring back a deleted screenshot: - A renewal GET that started after a delete started, but before it committed, captured the already-bumped generation. If the DELETE resolved first, the older GET then applied. Mutations now bump the generation again when they commit, and the initial load is fenced the same way. Tests cover both orderings. - fetchWithCache wrote a GET that resolved after a delete into the cache the delete had just invalidated, so reopening within the 1-minute TTL served the deleted frames. Screenshot-set fetches are no longer cached; the signed URLs expire anyway and the set is small. The screenFrames cache key and its invalidations are removed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 757b346aaf
ℹ️ 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".
| } catch (err) { | ||
| // Keep the current set; the next mount or manual refresh retries. | ||
| console.error('Failed to refresh screen frame URLs:', err); |
There was a problem hiding this comment.
Retry failed signed-URL renewals
When this scheduled GET fails once, frameSet remains unchanged, so the effect dependencies do not change and no replacement timer is installed. The existing URLs then expire roughly two minutes later, and the banner, carousel, and lightbox have no image-error retry path, leaving screenshots broken until the panel is remounted. Schedule a bounded/backoff retry after refresh failures rather than relying on a future mount or the currently unused manual refresh.
Useful? React with 👍 / 👎.
| const updated = await deleteScreenFrame(requestedId, frameId); | ||
| setGeneration.current += 1; | ||
| if (convIdRef.current === requestedId) { |
There was a problem hiding this comment.
Scope mutation generations to their conversation
If a mutation for conversation A remains in flight while the reused detail panel navigates to conversation B, B's load captures the current generation, but A's later completion increments this shared counter here before checking convIdRef. B's response is then discarded, leaving A's previous screenshots visible on B (or leaving B empty) until the old frame-set expiry timer eventually refreshes, which can take nearly an hour or never happen when A had no frames. Only advance the commit generation when the requested conversation is still current, or maintain generations per conversation.
Useful? React with 👍 / 👎.
…ttempt If a renewal was in flight when a delete started and then failed, the generation fence discarded the renewal and nothing replaced frameSet, so the one-shot timer never rearmed and the signed URLs expired in place. The same happened after a renewal request failed. Both now count as a renewal miss, which rearms the timer with bounded exponential backoff (30s doubling, capped at 5 min); an adopted set resets it. Reproducing tests cover the fenced-out case and the failed-request case. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 62a095e7a4
ℹ️ 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".
| const gate = createRefreshGate({ | ||
| run: async () => { | ||
| try { | ||
| setFrameSet(await getSharedScreenshots(conversationId)); |
There was a problem hiding this comment.
Keep the last frame set when renewal fails
getSharedScreenshots converts every network or non-2xx failure to null, so a transient failure during the scheduled or image-error refresh makes this setter empty tiles. The expiry timer and visibility listeners are then removed and the component renders nothing, leaving no path to retry; all screenshots disappear for the rest of the page session. Preserve the last valid set and schedule a backoff retry, while still accepting a successful empty frame-set response when sharing is intentionally disabled.
Useful? React with 👍 / 👎.
A delete in conversation A that committed after switching to B bumped the generation unconditionally, discarding B's pending load and leaving A's screenshots displayed under B. A stale A callback started after the switch could do the same at its start. State (set, error, loading) now carries the conversation id it belongs to, and the returned values are derived as empty unless it matches the current id, so a switch clears the previous set in the same render and nothing for A can land under B. Generation bumps (mutation start and commit) happen only while their conversation is current; the current-id ref updates in a layout effect so no promise can resolve between a switch and the ref catching up; only the most recent load may end the loading state. Mutations share one code path. Tests reproduce all three cross-conversation cases. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A network error or 5xx during a URL renewal returned null and cleared the
set, which tore down the renewal timer and listeners, so the strip never came
back without a reload.
- getSharedScreenshots now returns { ok: true, set } | { ok: false }; only a
successful response (including a successful empty one) replaces the set.
- A failed refetch rejects inside createRefreshGate, which retries on its own
with exponential backoff (30s doubling, capped at 5 min).
- Only images that failed are hidden (the tile keeps its gradient ground).
- Images are keyed by a per-successful-refetch version: measured live, the
backend can return the identical signed URL after a failure, and an <img>
whose src does not change never reloads after an error.
- ScreenMoments is keyed by conversation id, and responses landing after
unmount are dropped.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9c168b5880
ℹ️ 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".
| <div | ||
| className={`sn-lightbox-stage${ | ||
| showZoomed ? ' sn-lightbox-zoomed' : '' | ||
| }${failedIds.has(current.id) ? ' sn-shot-failed' : ''}`} |
There was a problem hiding this comment.
Track thumbnail and full-size failures separately
When only one of the two independently fetched objects fails, this frame-wide flag hides the other image too: a thumbnail error adds the frame ID, and opening the lightbox then applies sn-shot-failed to the stage, making a valid content_url invisible; conversely, a full-size error hides the working thumbnail. This can leave users with a blank lightbox or tile when only one GCS object/request is unavailable, so failure state should distinguish the thumbnail from the full-size image.
Useful? React with 👍 / 👎.
markFailed keyed on frame id, so a failed thumbnail also hid the healthy full-size image of the same frame in the lightbox (and vice versa). Failures are now tracked per image URL (thumbnail and content separately) via withFailedAsset; each <img> checks its own URL, a renewed URL starts clean, and a successful refetch still resets the set. Verified live with every thumbnail blocked: tiles hid their images, the lightbox image loaded. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 186a1f7180
ℹ️ 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".
| export function msUntilRefresh(tiles, nowMs, marginMs = URL_REFRESH_MARGIN_MS) { | ||
| const earliest = earliestExpiryMs(tiles); | ||
| if (earliest === null) return 0; | ||
| return Math.max(0, earliest - marginMs - nowMs); |
There was a problem hiding this comment.
Base URL renewal on server time, not the client clock
When the viewer's clock is behind the server by more than the two-minute margin, subtracting client-side Date.now() schedules this refresh after the GCS signatures have actually expired; the visibility and pageshow checks use the same skewed calculation, so thumbnails and lightbox images remain broken until the delayed timer fires. Derive a server/client clock offset from the response or schedule from a server-provided relative lifetime, and apply the same correction to the equivalent signed-in web-app calculation.
Useful? React with 👍 / 👎.
| const [memory, screenshots] = await Promise.all([ | ||
| getSharedMemory(memoryId), | ||
| getSharedScreenshots(memoryId), | ||
| ]); |
There was a problem hiding this comment.
Isolate the optional screenshot fetch from page rendering
When the screenshot endpoint or its signed-URL storage dependency stalls while the shared-conversation endpoint remains healthy, this Promise.all blocks the entire public note even though screenshots are optional. The action catches rejected requests but supplies no timeout, so a partial screenshot-service degradation can make every affected share page hang until the platform-level request timeout; bound this fetch with an abort timeout or render it behind an independent Suspense/fail-open boundary.
Useful? React with 👍 / 👎.
The page converted a failed initial fetch to null, indistinguishable from a
successful empty set, so the client never retried and a transient backend
error hid the strip for the life of the page.
The page now passes the { ok } result through (type moved to
memory.types). initialFrameState seeds ScreenMoments: a failure starts empty
and enqueues a client retry through the refresh gate; a successful response,
including an empty one, is final and never polled. The gate now also stops
retrying on its own after 8 consecutive failures (explicit requests still
pass), so the retry is bounded in count as well as backoff. Verified live
behind a proxy that 503s the first screenshot request: server HTML had no
strip, the client retry rendered all 7 tiles.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ac00511f81
ℹ️ 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".
| failures += 1; | ||
| inFlight = false; | ||
| if (failures <= maxAutoRetries) schedule(); |
There was a problem hiding this comment.
Rearm refreshes after exhausting automatic retries
When the initial screenshot fetch fails throughout the nine attempts allowed here, the gate stops scheduling work permanently. Because frameSet is still empty, the component's expiry and visibility effect returns before installing any listeners, so a page kept open after the screenshot service recovers never fetches or displays its screenshots. After reaching the cap, schedule a slower health retry or otherwise leave a trigger armed instead of abandoning the initial load.
Useful? React with 👍 / 👎.
…cus sane
- After a failed server-side fetch and exhausted automatic retries, the set
was empty and the listener effect bailed out, so returning to the tab never
retried. recoveryListenersMode now keeps visibilitychange/pageshow
listeners registered while awaiting a first successful fetch ('recover'),
cleared on the first success; a successful empty set stays unpolled.
- When a refresh shrinks the set with the lightbox open, clampOpenIndex
clamps the index and shownIndex follows it, so Esc refocuses the frame
actually shown. When the set empties (the strip unmounts), focus falls back
to the selected tab instead of being lost to <body>. Verified live via a
proxy that returns an empty set mid-view: dialog closed, focus on "Notes".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e173c64503
ℹ️ 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".
| const timer = | ||
| mode === 'renew' | ||
| ? window.setTimeout(refresh, msUntilRefresh(tiles, Date.now())) | ||
| : undefined; |
There was a problem hiding this comment.
Continue recovery retries while the tab stays visible
When the initial server fetch and all automatic gate retries fail while the page remains visible, recovery stops permanently even if the service subsequently recovers. Fresh evidence in the current fix is that mode === 'recover' explicitly installs no timer, so only a later visibilitychange or pageshow can trigger another request; a user who keeps reading the open note will therefore never see its screenshots. Keep a slower capped recovery timer armed until the first successful response.
Useful? React with 👍 / 👎.
`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]>
Summary
Part of the screen-evidence program (meeting screenshots on every surface). Web lane.
Public share page (
web/frontend, h.omi.me/conversations/) — new "What was on screen" strip in the Notes tab, after notes and action items, from the unauthenticatedGET /v1/conversations/{id}/shared/screenshots.cache: 'no-store', parallel with the note; the page is already dynamic viaheaders()), so no cached render can carry dead URLs. The client refetches via the same server action shortly beforeurl_expires_at, on tab return / bfcache restore, and on image error, with a 30s floor between refetches.<img>with explicit width/height.storage.googleapis.comis inremotePatterns, but next/image would proxy and cache expiring signed URLs in the optimizer.--sn-*tokens (dark + light).Signed-in web app (
web/app) —useScreenFramestypes still matchbackend/models/screen_frame.py(the generated OpenAPI types). One stale behaviour fixed: the hook never honouredurl_expires_at, so a panel open past 60 minutes showed broken images. It now silently refetches before the earliest expiry. Screenshot-set fetches are no longer cached at all.Verification
web/frontend:bash scripts/run-web-frontend-tests.sh(178 pass, including the newshared-screenshots.test.mjs),npm run lintclean,tsc --noEmitshows no errors in the changed files (the 33 existing errors elsewhere are unchanged; the build setsignoreBuildErrors).web/app:bun run check(typecheck + 601 tests pass, including new expiry tests formsUntilFrameUrlRefreshand the hook's silent refresh).next devpointed at the DEV API (API_URL=https://api.omiapi.com, unauthenticated public route) for shared conversation449565eb-8f8c-56a9-aae1-a3473df5d931. Dev returned banner + 6 strip frames, and all 7 tiles rendered. Headless Chrome (playwright-core) in dark, light and 390px mobile: the lightbox opened at 1048×752 for a 1494×1072 frame (fit, aspect kept), → advanced to 2/7, focus stayed trapped after 5 Tabs, and Esc closed it with focus back on tile 2.Review fixes (Codex Sol, 2 × P2)
useScreenFrames: a background URL refresh still in flight when a delete or sharing change completed could overwrite that change's authoritative set and bring deleted tiles back. Every load and mutation now bumps a generation counter, and a refresh applies only if the counter hasn't moved. A reproducing test (deferred refresh response) failed before the fix and passes after.Share page: an image error within the 30s post-renewal cooldown was dropped, leaving the image broken for about an hour.
createRefreshGatenow defers that request to the end of the cooldown and coalesces repeats. The gate is tested with an injected clock (the test failed before it existed).(re-review) A renewal GET that started after a delete started, but resolved after the delete committed, could still apply. Mutations now also bump the counter when they commit, and the initial load is fenced the same way. There are tests for both orderings.
(re-review)
fetchWithCachestored a GET that resolved after a delete, so reopening within the 1-minute TTL showed the deleted frames again. Screenshot-set fetches are now uncached for both the first load and renewals (apiScreenFrames.test.tsreproduces the reopen case).(third pass) A renewal fenced out by a delete that then failed, or a renewal whose request failed, left nothing to rearm the one-shot timer, so the URLs expired in place. Either case now counts as a miss and rearms renewal with bounded backoff (30s doubling, capped at 5 min); an adopted set resets it. Reproducing tests cover both cases.
(fourth pass) Cross-conversation: a delete in A that committed during B's load could leave A's screenshots showing under B. State (set, error, loading) is now tagged with its conversation and read as empty unless that conversation is current, so a switch clears in the same render. Generation bumps only apply while their conversation is current, and the current-id ref updates in a layout effect. Three tests reproduce the cross-conversation cases.
(fourth pass) Share page: a transient failure while renewing cleared the set for good. The action now returns
{ ok } | { ok: false }. A failure keeps the set, hides only the images that failed, and retries with capped backoff. Only a successful empty response clears the strip. A live check (500 on the server action plus blocked GCS) found one more gap: after the failure the backend returned the same signed URL, and an unchangedsrcnever reloads. Images are now keyed per successful refetch. Re-run live: the strip stayed during the failure, the retry fired at 60s, and the image reloaded.(fifth pass) Failures were tracked per frame id, so a failed thumbnail also hid the healthy full-size image in the lightbox. They are now tracked per image URL (
withFailedAsset), and each image checks its own URL. Live check with every thumbnail blocked: all 7 tiles hid their images, and the lightbox image still loaded at 1494px, visible.(sixth pass) A failed server-side fetch was turned into
null, which looked the same as a successful empty set, so the client never retried. The page now passes the{ ok }result through. On a failure the component starts empty and schedules a client retry: capped backoff, and it stops retrying on its own after 8 consecutive failures. A successful empty set is never polled. Live check behind a local proxy that returns 503 for the first screenshot request: the server HTML had no strip, then the client retry rendered all 7 tiles. (Separately, the backend lane is makingurl_expires_atreport the true signature expiry. This client already schedules renewal fromurl_expires_at, so it needs no change.)(seventh pass) After a failed first fetch and exhausted auto-retries, the set was empty and the listener effect exited early, so returning to the tab never retried.
recoveryListenersModenow keeps the visibilitychange/pageshow listeners registered until a first fetch succeeds. A successful empty set still registers nothing. This is covered by unit and source tests only; I didn't run the ~25-minute exhaustion live.(seventh pass) If a refresh shrinks the set while the lightbox is open,
clampOpenIndexnow clamps the index and the refocus target follows it. If the set empties, focus falls back to the selected tab. Live check through a proxy that returns an empty set mid-view: the dialog closed, the strip went away, and focus landed on the selected "Notes" tab.Product invariants affected
components/memories/(the conversation view), and this PR only adds a read-only screenshot strip. No memory tier, access policy or storage changes.Failure class (fixes)
Failure-Class: none
The web-app fix is a client that ignored the server-reported
url_expires_aton signed screenshot URLs. The closest registered class, FC-assumed-credential-lifetime, is scoped to backend access-token caches and already has a guard-ratchet backlog, so this PR doesn't declare it. The regression test (useScreenFramessilent refresh with fake timers) is the guard.🤖 Generated with Claude Code