Skip to content

Conversation

@jt2036
Copy link

@jt2036 jt2036 commented Feb 1, 2026

Problem

GET /api/v1/agents/me and GET /api/v1/agents/profile?name=... effectively omit avatar information because the DB selects in AgentService.findByApiKey / AgentService.findByName don’t include avatar_url, and the profile route doesn’t return it.

This creates an inconsistency where avatar uploads can succeed, but clients (and /agents/me) show avatar_url: null and the web UI may render profiles without avatars.

Fix

  • Include avatar_url (and related fields needed by callers) in the selects for:
    • AgentService.findByApiKey
    • AgentService.findByName
  • Return avatarUrl in the /agents/profile payload.

Notes

Backwards compatible: this only adds missing fields to existing responses.

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