vercel / vercel/ai-elements

Feature Request: Add Quote/Reply Functionality to Message Component

Open
#356 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
2.4k
Forks
283
Avg merge
32m
Merged PRs (30d)
1

Description

Add the ability to quote or reply to specific messages in conversations, similar to common chat interfaces like ChatGPT, Slack, and Discord.

Motivation

Adding a built-in way to quote or reference previous messages in a conversation will:

  • Provide context when responding to specific parts of a conversation
  • Improve multi-turn conversations where users want to reference earlier points

Proposed User Flow

  1. User hovers over, clicks, or double-clicks text within a message
  2. A "Reply" or quote button appears
  3. Clicking it adds the selected message content as a quoted reference
  4. The quoted text appears in/near the input area
  5. User can remove/cancel the quote with a close button or ESC key

Screenshots:

Claude:

Image

ChatGPT

Image

V0

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Message component and the conversation input area described in the proposed flow. Review how message selection, reply state, quoted content, cancellation, and keyboard handling currently work; done means users can select a message, add it as a quote, remove it, and see the reference while composing a reply.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.