Skip to content

Unable to copy terminal output to clipboard on macOS #7132

Closed as not planned
Closed as not planned

Description

@teddy-paris

Problem

When using OpenCode's integrated terminal, users cannot copy text from the terminal output using Cmd+C on macOS. The keyboard shortcut appears to be intercepted by the TUI before it reaches the system clipboard.

Expected Behavior

Users should be able to select text in the integrated terminal and copy it to the clipboard using standard macOS shortcuts (Cmd+C), so they can paste it into the chat input or other applications.

Current Behavior

Pressing Cmd+C after selecting text in the integrated terminal does nothing - the text is not copied to the clipboard.

Environment

  • macOS
  • OpenCode TUI with integrated terminal

Suggested Solutions

  1. Pass through Cmd+C to the system when text is selected in the terminal
  2. Add a right-click context menu with "Copy" option
  3. Add a keybind specifically for terminal copy (e.g., Cmd+Shift+C)

Use Case

Users often need to copy error messages, file paths, or command output from the terminal to paste into the chat for context or to reference in their queries.

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 6, 2026
  2. github-actions commented on Jan 6, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  3. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  4. WolfgangFahl commented on Apr 12, 2026

    @WolfgangFahl

    #12800 is still open

  5. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
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