Upgrade applesauce to v7 and fix activity feed loading #119

Merged
raucao merged 3 commits from chore/upgrade_applesauce into master 2026-11-16 20:35:27 +00:00
Owner

Upgrade the applesauce packages (core, common, loaders, relay, signers) to major version 7. No production code changes were needed for the upgrade; the only adaptations are test fixtures for v7's stricter event validation and batched timeline emissions.

Fix the activity feed bugs that surfaced on first load:

  • Contacts are now treated as loaded only once the kind 3 event actually exists, so the first home window is fetched with the follow list, and the initial window is re-fetched if contacts arrive late.
  • Sender kind 0 profiles are resolved from the user's relays and from the content's origin relays, with a retry after the first load, so names resolve without re-entering the view.
  • Older pages auto-load while the end sentinel stays visible, with a hasMore terminal guard, serialized fetches and an epoch token so a mode switch invalidates in-flight fetches.
  • Zap entries are deduplicated across window re-fetches.

Also adds the applesauce agent skill.

Upgrade the applesauce packages (core, common, loaders, relay, signers) to major version 7. No production code changes were needed for the upgrade; the only adaptations are test fixtures for v7's stricter event validation and batched timeline emissions. Fix the activity feed bugs that surfaced on first load: - Contacts are now treated as loaded only once the kind 3 event actually exists, so the first home window is fetched with the follow list, and the initial window is re-fetched if contacts arrive late. - Sender kind 0 profiles are resolved from the user's relays and from the content's origin relays, with a retry after the first load, so names resolve without re-entering the view. - Older pages auto-load while the end sentinel stays visible, with a hasMore terminal guard, serialized fetches and an epoch token so a mode switch invalidates in-flight fetches. - Zap entries are deduplicated across window re-fetches. Also adds the applesauce agent skill.
raucao added 3 commits 2026-11-16 20:32:17 +00:00
Bump applesauce-core/common/loaders/relay/signers to major v7.

Adapt test fixtures to v7's stricter isEvent() (128-char hex signatures and string-only tag values) and to the batched EventStore timeline emissions.
- Treat contacts as loaded only once the kind 3 event exists, so the first
  home window is fetched with the follow list, and re-fetch the initial window
  when contacts arrive late.
- Resolve sender kind 0 profiles from the user's relays and the content's
  origin relays, and retry unresolved senders after the first load.
- Auto-load older pages while the end sentinel stays visible via a service-side
  loop, guarded by hasMore and a fetch lock, with an epoch token so a mode
  switch invalidates in-flight fetches.
- Deduplicate zap entries across window re-fetches.
Add applesauce agent skill
CI / Lint (pull_request) Successful in 1m12s
CI / Test (pull_request) Successful in 1m28s
Release Drafter / Update release notes draft (pull_request) Successful in 14s
349ee33030
raucao added the dev environmentenhancementnostrbug labels 2026-11-16 20:33:39 +00:00
raucao merged commit 638bff11d0 into master 2026-11-16 20:35:27 +00:00
raucao deleted branch chore/upgrade_applesauce 2026-11-16 20:35:28 +00:00
Sign in to join this conversation.