[PR #6444] feat: Copy Assistant Response Chain - one-click copy entire response chain including tool outputs #11908

Open
opened 2026-02-16 18:16:50 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6444

State: open
Merged: No


Adds subtle [copy] button on completed assistant responses.

Example

▣ Build · claude-opus-4-20250514 · 17.1s [copy]

Features

  • Copies entire assistant response chain including text and tool outputs
  • Strips ANSI color codes from tool outputs automatically
  • Copies all assistant messages in the chain (for multi-part responses)
  • One-click clipboard copy with toast confirmation

Changes

  • packages/opencode/src/cli/cmd/tui/routes/session/index.tsx - Add copyAssistantResponseChain function and [copy] button to AssistantMessage
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6444 **State:** open **Merged:** No --- Adds subtle [copy] button on completed assistant responses. ## Example ``` ▣ Build · claude-opus-4-20250514 · 17.1s [copy] ``` ## Features - Copies entire assistant response chain including text and tool outputs - Strips ANSI color codes from tool outputs automatically - Copies all assistant messages in the chain (for multi-part responses) - One-click clipboard copy with toast confirmation ## Changes - packages/opencode/src/cli/cmd/tui/routes/session/index.tsx - Add copyAssistantResponseChain function and [copy] button to AssistantMessage
yindo added the pull-request label 2026-02-16 18:16:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11908