Skip to content

FeedEcho v1.9.1 — Bluesky Review Fixes

Choose a tag to compare

@jcrabapple jcrabapple released this 20 Aug 12:27
· 623 commits to master since this release

FeedEcho v1.9.1 — Bluesky Review Fixes

Hardening pass from an external code review of the v1.9.0 Bluesky support.

Dispatch & reliability

  • Every failure path now finalizes claimed rows — content-prep and image-pipeline exceptions can no longer strand items in pending; image failures degrade to text-only posts.
  • _bsky_session persists resolved DID/PDS on all paths (a cached-token path could previously post with an empty repo) and no longer holds a DB connection during network I/O.
  • Claim ownership is re-validated immediately before posting to shrink the duplicate-post window; post URLs are recorded and linked from the History page.
  • Permanent failures (missing account, credentials rejected after re-auth) go straight to gave_up instead of consuming the retry budget against bsky.social's createSession rate limits.

AT Protocol correctness

  • createRecord 400s are treated as validation errors, not auth errors; only 401/ExpiredToken/InvalidToken trigger the re-auth-and-retry path.
  • uploadBlob raises on auth failures (instead of silently dropping images) and enforces the 1 MB / type limits itself.
  • Refresh-token rotation is now mandatory — a refresh response missing the rotated token is an error, never a fallback to the old token.
  • did:web accounts now resolve by fetching the DID document and extracting the #atproto_pds service entry instead of assuming the domain is the PDS.
  • Post records include $type; PDS-provided error messages are surfaced in exceptions.

Text & UI

  • Grapheme truncation now merges flag regional-indicator pairs and emoji tag sequences, and strips dangling ZWJs at the cut.
  • Link facets that cross the truncation ellipsis are dropped (no broken partial-URL links).
  • Handle validation enforces the AT Protocol grammar + 253-char cap; display names capped at 100 chars.
  • Account deletion is refused while echoes reference the account; delete shows a confirmation flash.
  • Bluesky routes are threadpool-offloaded; test buttons handle non-JSON error responses; app-password copy matches actual scope.
  • Connection tests clean up their sessions via deleteSession.

Tests

  • 37 new tests; full suite at 219 passing.