feat(web): reply to selected assistant text - #6457
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Needs human review This PR introduces a new user-facing feature (selecting assistant text to create quoted replies) with new UI components, event handlers, and workflows. New capabilities of this scope warrant human review regardless of implementation quality. You can customize Macroscope's approvability policy. Learn more. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e497925. Configure here.
|
Note 🤖 GPT-6 Astra (preview) responding on behalf of Theo This was closed as part of an automated cleanup pass. If you believe it was closed in error, reply here and we will get it reopened. Closing as superseded by #9146, which is on main. Selecting assistant text now offers Cite and adds the selection to the composer with a source link. That flow also supports saved drafts and source navigation, so a second Reply overlay for the same selection is not needed. |

What Changed
Why
Replying to one passage currently requires manually copying, pasting, and formatting it. This keeps the selected context visible in chat history and sends it through the existing provider flow without changing wire contracts or provider adapters.
Closes #6456
UI Changes
Before — selecting assistant text has no follow-up action:
After — the selection exposes a compact Reply action:
Choosing Reply inserts an editable quote into the composer:
Checklist
Generated by GPT-5.6-Sol via the Codex harness in T3 Code.
Note
Low Risk
Client-only composer/timeline UX with unit tests; no API or provider contract changes.
Overview
Adds Reply when you select text in an assistant message on web/desktop. A floating button uses the same clipboard payload as copy, then appends a labeled markdown blockquote to the composer via new helpers in
assistantResponseQuote.ts(spacing rules avoid extra blank lines).ChatViewwires the callback; if the composer can’t accept text (e.g. active request), users see a “Reply unavailable” toast. CSS animates the action chip with reduced-motion support.docs/user/chat.mddocuments the flow and notes mobile can show quotes but not create them yet.Reviewed by Cursor Bugbot for commit f3ae1c9. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add floating Reply button for selected assistant message text in chat
assistantResponseQuote.ts: each line is prefixed with>, preceded by a bold> **Replying to an assistant response:**header, and separated from existing composer content by the appropriate number of newlines.index.csswith an entry animation that respectsprefers-reduced-motion.docs/user/chat.md, noting that reply creation is web/desktop only while mobile can display quotes.Macroscope summarized f3ae1c9.