Skip to content

[FEATURE]: /copy command copies the entire conversation, including thinking process and executed commands #53301

Closed

Description

@huangcancan-xbc

Verified this is a feature request

  • I have verified that this is a feature request and not a bug report.

Description

In the opencode CLI, when using the /copy command, it copies everything from the session — including the model's thinking process, executed commands, tool output, etc.

In most cases, users only want to copy the final result/answer, not the entire conversation transcript. It would be much more useful if /copy copied only the final assistant response by default, or provided an option to choose what gets copied (e.g. /copy --last, /copy N, or a config setting).

OpenCode version

latest

Steps to reproduce

  1. Start opencode CLI on Windows 11 and have a conversation with the agent (including thinking and tool/command execution)
  2. Run the /copy command
  3. Paste the clipboard content — it contains the full conversation including thinking process and executed commands, not just the final result

Screenshot and/or share link

No response

Operating System

Windows 11

Plugins

Yes, plugins are in use (with a terminal environment).

Terminal

Windows Terminal (with plugins in use)

Activity

  1. changed the title [-]/copy command copies the entire conversation, including thinking process and executed commands[/-] [+][FEATURE]: /copy command copies the entire conversation, including thinking process and executed commands[/+] on Oct 5, 2026
  2. github-actions commented on Oct 5, 2026

    @github-actions
    Contributor

    Thanks for updating the issue with the feature verification, title, description, and reproduction details!

  3. github-actions commented on Oct 5, 2026

    @github-actions
    Contributor

    Thanks for updating the issue with the feature verification, clear description, and reproduction details!

  4. Quantum-Quasar commented on Oct 10, 2026

    @Quantum-Quasar

    Same request here on opencode 2.0.26 (Linux TUI). /copy grabs the whole transcript and my use case is narrower: I want only the latest assistant response's text — no thinking blocks, no tool calls/results, no earlier turns, none of my own prompts. Typical case: the agent just produced the final answer and I want exactly that on the clipboard.

    Something like /copy --last (or a keybind / config default for it) would cover it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions