Skip to content

Conversation

@ryanwyler
Copy link
Contributor

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

@ryanwyler ryanwyler force-pushed the feature/copy-assistant-response branch 2 times, most recently from d10e8fe to 2d74314 Compare December 31, 2025 11:24
…chain including tool outputs

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
@ryanwyler ryanwyler force-pushed the feature/copy-assistant-response branch from 2d74314 to fce54ab Compare January 5, 2026 16:06
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