Skip to content

fix(conversations): return absolute contact avatar URLs from the public API - #1791

Merged
realcodesiman merged 3 commits into
mainfrom
fix/conversations-public-avatar-urls
Nov 26, 2026
Merged

realcodesiman merged 3 commits into
mainfrom
fix/conversations-public-avatar-urls

Conversation

@realcodesiman

Copy link
Copy Markdown
Contributor

Summary

  • Public conversations.list / conversations.find returned raw storage keys for contact avatars, which API callers (mobile app, CLI, MCP) can't resolve.
  • Add createAvatarFinalizer: with publicUrls: true it converts keys to absolute URLs (same rule as contacts.list), reading the tenant storage URL once per call. The builder UI path keeps returning keys.

Test plan

  • avatar-finalizer.test.ts unit tests
  • check-types (builder) via pre-commit hook
  • Verify public API conversation list/find return absolute avatar URLs

…ic API

The public conversations list and find returned raw storage keys for
contact avatars, which API callers (mobile app, CLI, MCP) cannot resolve.
Add an avatar finalizer that converts keys to public URLs when publicUrls
is set, reading the tenant storage URL once per call.
@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 26, 2026
…onversations

Move createAvatarFinalizer to contacts/queries so contacts.list/get,
broadcasts and conversations use the same rule. The tenant storage URL
is now read lazily on the first stored key and then once per call, so
empty pages and pages with only proxied avatars skip it. A contact that
appears in several conversations on one page has its avatar resolved
once.
…d shared token hashes

Allow numeric suffixes on partition index names in the channel post metrics
plan assertions, and give the replay-race test unique token hashes so it
cannot collide with rows from sibling tests.
@realcodesiman
realcodesiman merged commit c45e2f4 into main Nov 26, 2026
14 checks passed
@realcodesiman
realcodesiman deleted the fix/conversations-public-avatar-urls branch November 26, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant