Title: feat(chat): favicon external links with secure link-preview tooltips by waleedlatif1 · Pull Request #5734 · simstudioai/sim · GitHub
Open Graph Title: feat(chat): favicon external links with secure link-preview tooltips by waleedlatif1 · Pull Request #5734 · simstudioai/sim
X Title: feat(chat): favicon external links with secure link-preview tooltips by waleedlatif1 · Pull Request #5734 · simstudioai/sim
Description: Summary external http(s) links in chat responses now render with the site's favicon (Google s2 service, 2x fetched, 12px, optically aligned to cap height) + a quiet solid underline in --text-muted that darkens to --text-primary on hover — replaces the harsh dashed underline; mailto/anchor/relative links keep the old treatment hovering a link shows an OG-metadata preview tooltip (title / description / site name) via a new contract-bound GET /api/link-preview route: session-gated, fetches through the existing SSRF toolkit (secureFetchWithValidation — DNS-pinned, private-IP blocked) with 5s timeout, 3-redirect cap, 256KB response cap, head-only OG parsing, and Redis caching (24h positive / 1h negative); any failure returns a null preview and the tooltip falls back to the URL preview requests fire only on hover intent (Radix lazy-mounts tooltip content) through a new useLinkPreview React Query hook consolidated the favicon URL into a shared faviconUrl() helper, now used by both chat and the tables URL cell (previously inline there) bumped the api-validation route-count baseline 963→964 for the new route Type of Change New feature Testing Tested manually against the running app (favicon alignment across 10 sites, preview tooltips, 401 unauthenticated, bot-blocked-site fallback) Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)
Open Graph Description: Summary external http(s) links in chat responses now render with the site's favicon (Google s2 service, 2x fetched, 12px, optically aligned to cap height) + a quiet solid underline in --text-m...
X Description: Summary external http(s) links in chat responses now render with the site's favicon (Google s2 service, 2x fetched, 12px, optically aligned to cap height) + a quiet solid underline in --te...
Opengraph URL: https://github.com/simstudioai/sim/pull/5734
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ab5be34f-9a90-e5a8-ef26-83475b7120e9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BCCA:1F3796:EB3C20:154D7DB:6A632B80 |
| html-safe-nonce | f9cfb4eceeeeb86336d88b64b62ee1b5945acae84aad7921cb4fe0055f640d03 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0NBOjFGMzc5NjpFQjNDMjA6MTU0RDdEQjo2QTYzMkI4MCIsInZpc2l0b3JfaWQiOiI1NjM4MDcyNTc0MTg4NjYxNjMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f3b61f8932dc3574a125c57457d9777e3dc2992afdcee999efe7d8bff510b4d5 |
| hovercard-subject-tag | pull_request:4077934639 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5734/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary external http(s) links in chat responses now render with the site's favicon (Google s2 service, 2x fetched, 12px, optically aligned to cap height) + a quiet solid underline in --text-m... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 30c644d502bce6cd2e59f9000b4744f2b64819abea8e8f959b18e3ad793125aa |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 331492a48ebd91d66ef2de38e1901bb911c9fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width