Return full identity_key from /api/identities endpoint #56

Closed
opened 2026-10-27 09:30:33 +01:00 by adam · 1 comment
Owner

On the feat/companion branch, the GET /api/identities endpoint truncates the identity_key to 16 characters in repeater/web/api_endpoints.py:

"identity_key": identity_key[:16] + "..." if len(identity_key) > 16 else identity_key,

Because of this truncation on the backend, the frontend UI is unable to copy the full identity key to the clipboard when managing room servers or companions.

Could we update this to just return the full key?

"identity_key": identity_key,

The frontend can handle visual truncation via CSS while still allowing the user to copy the complete key.

On the `feat/companion` branch, the `GET /api/identities` endpoint truncates the `identity_key` to 16 characters in `repeater/web/api_endpoints.py`: ```python "identity_key": identity_key[:16] + "..." if len(identity_key) > 16 else identity_key, ``` Because of this truncation on the backend, the frontend UI is unable to copy the full identity key to the clipboard when managing room servers or companions. Could we update this to just return the full key? ```python "identity_key": identity_key, ``` The frontend can handle visual truncation via CSS while still allowing the user to copy the complete key. <!-- github-sync-id:4062497314 -->
adam closed this issue 2026-10-27 09:30:33 +01:00
Author
Owner

now in API

now in API <!-- github-comment-id:4303718867 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/pyMC_Repeater#56