mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-29 06:31:32 +00:00
chore(honcho): trim peer-card fallback comment
This commit is contained in:
parent
bcae3fcc4e
commit
c89393b711
1 changed files with 2 additions and 5 deletions
|
|
@ -1090,11 +1090,8 @@ class HonchoSessionManager:
|
|||
card = self._fetch_peer_card(observer_peer_id, target=target_peer_id)
|
||||
if card:
|
||||
return card
|
||||
# Honcho self-hosted v3 stores the peer card on the peer itself
|
||||
# (GET /peers/{id}/card). The observer-target slot used above is
|
||||
# only populated when writes also go through that path. Fall back
|
||||
# to the target peer's own card so honcho_profile works regardless
|
||||
# of which write path populated it.
|
||||
# Some backends store cards directly on the target peer, not the
|
||||
# observer-target slot. Fall back so honcho_profile still works.
|
||||
if target_peer_id:
|
||||
return self._fetch_peer_card(target_peer_id)
|
||||
return []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue