Repository navigation
FeedEcho v1.9.1 — Bluesky Review Fixes
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_sessionpersists resolved DID/PDS on all paths (a cached-token path could previously post with an emptyrepo) 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_upinstead of consuming the retry budget against bsky.social'screateSessionrate limits.
AT Protocol correctness
createRecord400s are treated as validation errors, not auth errors; only 401/ExpiredToken/InvalidTokentrigger the re-auth-and-retry path.uploadBlobraises 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:webaccounts now resolve by fetching the DID document and extracting the#atproto_pdsservice 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.