Skip to content

📇 feat: Agent Contact Visibility with Owner Fallback - #13663

Merged
danny-avila merged 12 commits into
LibreChat-AI:devfrom
daimlertruck:feat/agent-contact-visibility
Jun 25, 2026
Merged

danny-avila merged 12 commits into
LibreChat-AI:devfrom
daimlertruck:feat/agent-contact-visibility

Conversation

@peeeteeer

Copy link
Copy Markdown
Collaborator

Implements agent contact visibility for LibreChat issue #12784.

This adds a derived owner_contact fallback to agent API responses when an agent has no explicit support_contact. The fallback is resolved server-side from the first agent owner, preferring ACL ownership and falling back to the legacy author field only when ACL owner data is unavailable. Explicit support contact remains authoritative and is not mixed with owner fallback data.

Changes

  • Added shared AgentOwnerContact typing and owner_contact support on agent response types.
  • Added shared contact resolution helpers in packages/api.
  • Added server-side owner contact attachment through api/server/services/Agents/ownerContact.js.
  • Batched owner lookup for agent list responses to avoid per-agent DB queries.
  • Ensured update/avatar/action/revert responses include consistent contact data.
  • Added reusable AgentContact frontend rendering.
  • Shows contact in:
    • selected-agent landing state
    • agent detail dialog
    • agent marketplace cards
  • Renders No contact available when neither support nor owner contact exists.
  • Removed client-side cache fallback preservation now that server responses are consistent.

Change Type

Please delete any irrelevant options.

  • New feature (non-breaking change which adds functionality)

Testing

Tested on local machine and in a prod like test env.

Checklist

Please delete any irrelevant options.

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes

Peter Rothlaender ginkgo.rothlaender@external.daimlertruck.com on behalf of Daimler Truck AG.
Provider & Legal Notice | Daimler Truck
Copyright (c) {2026} Daimler Truck AG

@peeeteeer

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@peeeteeer
peeeteeer marked this pull request as ready for review June 11, 2026 12:37
@danny-avila
danny-avila changed the base branch from main to dev June 25, 2026 15:23
@danny-avila danny-avila changed the title feat: agent contact visibility 📇 feat: Agent Contact Visibility with Owner Fallback Jun 25, 2026
@danny-avila
danny-avila merged commit abf9fc3 into LibreChat-AI:dev Jun 25, 2026
32 checks passed
fuuuzzy pushed a commit to fuuuzzy/LibreChat that referenced this pull request Jul 7, 2026
)

* Shared Contract

* Backend Resolution

* Frontend Display

* Contact Styling and more tests

* fix contact flicker when saving an agent

* fix display owner when contact deleted

* simplification of the last fixes

* github action fixes

* fixes failing tests

---------

Co-authored-by: Peter Rothlaender <peter.rothlaender@ginkgo.com>
ThomasVuNguyen pushed a commit to ThomasVuNguyen/LibreChat that referenced this pull request Jul 15, 2026
)

* Shared Contract

* Backend Resolution

* Frontend Display

* Contact Styling and more tests

* fix contact flicker when saving an agent

* fix display owner when contact deleted

* simplification of the last fixes

* github action fixes

* fixes failing tests

---------

Co-authored-by: Peter Rothlaender <peter.rothlaender@ginkgo.com>
LogicalAbsurd pushed a commit to LogicalAbsurd/LibreChat that referenced this pull request Aug 27, 2026
)

* Shared Contract

* Backend Resolution

* Frontend Display

* Contact Styling and more tests

* fix contact flicker when saving an agent

* fix display owner when contact deleted

* simplification of the last fixes

* github action fixes

* fixes failing tests

---------

Co-authored-by: Peter Rothlaender <peter.rothlaender@ginkgo.com>
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.

2 participants