Skip to content

Cached profiles#293

Merged
zippy merged 6 commits intomain-0.6from
cached-profiles
Mar 23, 2026
Merged

Cached profiles#293
zippy merged 6 commits intomain-0.6from
cached-profiles

Conversation

@zippy
Copy link
Copy Markdown
Collaborator

@zippy zippy commented Mar 22, 2026

  • Removes zone call for getting profile for each mew. Instead UI caches profile info and renders based on agent-key returned by mew.

  • A bunch of other small fixes

zippy and others added 6 commits March 21, 2026 10:05
…ueries

Return null instead of undefined in query guards (TanStack Query rejects
undefined returns), narrow route watcher to only agentPubKey param, and
remove stale profile prop from MewsListAuthor.
UI fixes:
- Fix prop mutation in BaseMewListItem onCreateMewmew (use spread)
- Fix setInterval memory leak in NetworkInfo (move to onMounted, clean up)
- Add default to useCellsReady to prevent undefined outside provider
- Remove debug console.log statements from BaseAgentProfileName
- Add comment noting TanStack query key sharing in BaseAgentProfileLinkName

Rust fixes:
- Use get_options consistently in get_joining_timestamp_for_agent
- Remove duplicate GetAgentMewsWithContextInput, reuse GetAgentMewsInput
- Accept GetStrategy parameter in get_all_mew_hashes, propagate from caller
- Replace hardcoded ZomeIndex/LinkType magic numbers in notifications with
  named constants documenting the dna.yaml zome ordering

Config/test fixes:
- Restore mew_characters_max: 200 in workdir/dna.yaml
- Fix wrong zome function in mentions pagination test (was cashtag)
- Fix wrong page index variables in hashtag pagination cursor tests
Ensure SANDBOX_DIR exists before cloud deploy, add &runtime=hwc to
status URL, and keep local-dev start alive with tail so concurrently
sees the process as running.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace dual profile sources (TanStack Query + LazyHoloHashMap) with a
single useProfile composable that subscribes to ProfilesStore.profiles.
Profiles are only refreshed from the network when visiting an agent's
profile page; cached data is reused everywhere else.

- Add useProfile composable wrapping LazyHoloHashMap subscription
- Add BaseAgentAvatar component using sl-avatar/holo-identicon with
  profile data from props (no independent data fetching)
- Replace agent-avatar web component usage across all UI components
- Remove TanStack Query profile fetches from all components
- Use toPromise(profiles.get()) for one-shot fetches in dialogs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@zippy zippy merged commit 0919244 into main-0.6 Mar 23, 2026
2 checks passed
@zippy zippy deleted the cached-profiles branch March 23, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant