Add fresh read variants that await a server round-trip (closes #75) #76

Merged
clawbot merged 1 commits from issue-75-fresh-reads into next 2026-09-22 23:29:15 +02:00
1 Commits
Author SHA1 Message Date
sneak 0536ecab78 Add fresh read variants that await a server round-trip (closes #75)
check / check (push) Successful in 24s
Owner amendment to design #36: alongside the default reads, which answer
from RAM and refresh in the background, `Library.fresh()` forces a refresh,
awaits it, and only then hands back the albums/photos/timeline namespaces, so
a caller (the CLI, in #52) gets server-current data.

The background loop and the default reads are unchanged. Both paths now share
one in-flight-cycle slot: the loop skips when a cycle runs and swallows its
errors as before; a fresh read coalesces onto that cycle or starts one, and
propagates a failure so a refresh that could not complete rejects the caller
instead of silently serving stale data. Concurrent fresh reads therefore
collapse to a single server round-trip.

Model: opus-4-8
2026-09-22 21:06:11 +00:00