feat: extend hover copy button to tool results and intermediate AI text#200
feat: extend hover copy button to tool results and intermediate AI text#200AgarwalPragy wants to merge 1 commit into
Conversation
Follow-up to bff0910 which added a hover CopyButton to the text variant of LastOutputDisplay. Two more surfaces in the chat view show copyable prose and benefit from the same affordance: - LastOutputDisplay tool_result block: adds an inline CopyButton in the header row (right-aligned next to the tool name / error badge) - TextItem: passes copyable to MarkdownViewer so intermediate AI text outputs (inside the expanded view of an AI group) get the same hover copy button that ThinkingItem already has No behavior change to selection logic; both are always-visible affordances matching the existing CopyButton pattern.
There was a problem hiding this comment.
Code Review
This pull request enhances the chat interface by adding copy functionality to key components. It introduces a CopyButton to the LastOutputDisplay for tool results and enables the copyable prop on the MarkdownViewer within TextItem. As there are no review comments to evaluate, I have no further feedback to provide.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds copy-to-clipboard enhancements to two chat UI components. The tool result display now right-aligns its copy button in the header row, and the text item component enables inline copying for markdown content via the ChangesCopy functionality enhancements
Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
Two more surfaces benefit from the same hover CopyButton pattern that bff0910 added to
LastOutputDisplay's text variant:LastOutputDisplaytool_result block: inline CopyButton in the headerTextItem:copyableonMarkdownViewer, matchingThinkingItemValidation
pnpm typecheck,pnpm test(722/722),pnpm lint:fix,pnpm build— all passSummary by CodeRabbit
New Features
Style