fix(web/claw): fetch an image again for a card the mirror rebuilt
android / debug (push) Successful in 2m31s
ci / docker (push) Successful in 2m3s
ci / web (push) Successful in 15s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 2m3s
android / release (push) Successful in 2m13s
ci / checks (push) Successful in 1m7s
ci / test (push) Successful in 39s
ci / chart (push) Successful in 5s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 13s
ci / publish-edge-chart (push) Successful in 3s

A page read, a mirror reset, or a turn folding into the record builds
new card objects, and the pass that fetches image bytes remembered
attachment ids, so a rebuilt card whose bytes had not landed was never
asked for again. The guard now rides the card object: a new card gets
its fetch, and the useClaw cache answers a repeat with the blob it
already holds, so nothing is requested twice.

The object URL also lands on every card naming the id, not only the
first. A page's open tail is dropped and re-read with the turn's
beginning above it, which can leave two cards for one attachment, and
the second stayed blank.
This commit is contained in:
vhaudiquet committed 2026-11-24 21:33:15 +01:00
1 parent ea6edfe67a
commit 70b53665d5
3 files changed
+23 -16

No files matched your search

+6 -3
View File
@@ -60,9 +60,12 @@ Two consequences worth knowing before changing this code:
fire-and-forget (202); the reply streams back on
`GET /v1/sessions/{key}/events`. The transcript here is a mirror of
the stream, and the stream opens on the newest turn before the live
feed — a reload paints the latest conversation at once instead of
replaying a session that may have run for weeks, and the turns above
it come from `GET /v1/sessions/{key}/history`, one whole turn per
feed. That turn comes back whole even when it is longer than the
replay window, so a reload never lands mid-reply with the file the
turn handed over above the cut. A reload paints the latest
conversation at once instead of replaying a session that may have run
for weeks, and the turns above it come from
`GET /v1/sessions/{key}/history`, one whole turn per
page, as the reader scrolls up (or right away, while the transcript
is shorter than the screen). So the transcript survives the browser,
not just the claw.