You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Public link copy button copies a relative /chat/<token> path when FRONTEND_URL is unset #3170
The copy button on Agent → Sharing → Public links copies only the path (/chat/<token>), not a full link, when FRONTEND_URL is not set. The link shown in the panel is the same relative path. Pasting it anywhere outside the browser tab gives a broken link.
Cause
src/backend/routers/public_links.py::_build_public_url returns f"{FRONTEND_URL}/chat/{token}". FRONTEND_URL defaults to "" (src/backend/config.py, .env.example), so the url field is relative. PublicLinksPanel.vue copies link.external_url || link.url as-is; external_url is also unset unless PUBLIC_CHAT_URL is configured.
Repro
Run Trinity with FRONTEND_URL and PUBLIC_CHAT_URL unset (the .env.example default).
Agent → Sharing → Public links → create a link → Copy.
Clipboard holds /chat/<token>.
Expected
Clipboard and panel show a full URL, e.g. http://localhost/chat/<token>. When FRONTEND_URL is empty the UI should resolve the path against the page's own origin.
Acceptance criteria
With FRONTEND_URL unset, Copy puts an absolute URL (page origin + /chat/<token>) on the clipboard.
The URL displayed in the panel is the same absolute URL.
When FRONTEND_URL or PUBLIC_CHAT_URL is set, the copied URL is unchanged.
Activity
fix(public-links): copy and show an absolute public link URL when FRO…