Skip to content

feat: favicon chip for pasted URLs#885

Merged
miurla merged 1 commit into
mainfrom
feat/url-paste-card
Jun 9, 2026
Merged

feat: favicon chip for pasted URLs#885
miurla merged 1 commit into
mainfrom
feat/url-paste-card

Conversation

@miurla

@miurla miurla commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

Pasting a bare URL into an empty composer turns it into a lightweight favicon + domain chip instead of inline text — mirroring the existing content-card affordance. A URL pasted mid-sentence stays inline.

Behavior

  • Triggers only when the composer is empty; chip is removable (×); multiple allowed.
  • On submit the URL rides into the query, so the existing fetch tool picks it up — no server fetch, no persistence (L0 prototype).

Analytics

  • url_card_created / url_card_submitted / url_card_removed — counts only, no host/URL (shapes in PostHog, raw content stays in Neon).

Files

  • components/chat-panel.tsx (client-only)

@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
morphic Ready Ready Preview, Comment Jun 9, 2026 6:39am

Pasting a bare URL into an empty composer turns it into a lightweight
favicon + domain chip instead of inline text, mirroring the existing
content-card affordance. A URL pasted mid-text stays inline. Chips are
removable and multiple are allowed; on submit the URL rides into the
query so the existing fetch tool picks it up (no server fetch or
persistence — L0 prototype). Adds url_card_created / url_card_submitted
/ url_card_removed analytics (counts only, no host/URL).
@miurla miurla force-pushed the feat/url-paste-card branch from 89cb970 to eb977c2 Compare June 9, 2026 06:39
@miurla miurla merged commit 6ebd397 into main Jun 9, 2026
8 checks passed
@miurla miurla deleted the feat/url-paste-card branch June 9, 2026 06:41
miurla added a commit that referenced this pull request Jun 9, 2026
Follow-up to #885. Bare URLs folded into the message at send time now
render as a favicon chip (clickable, opens in a new tab) in the user
message, matching the composer. Only the leading run of URL lines is
chipped — so the message chip count matches what the composer showed,
and a URL the user typed inside the instruction body stays as plain text.
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.

1 participant