Skip to content

fix(terminal): enable copyOnSelect in xterm.js terminals - #263

Merged
levi770 merged 1 commit into
mainfrom
fix/terminal-copy-on-select
Jun 8, 2026
Merged

fix(terminal): enable copyOnSelect in xterm.js terminals#263
levi770 merged 1 commit into
mainfrom
fix/terminal-copy-on-select

Conversation

@levi770

@levi770 levi770 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add copyOnSelect: true to Terminal.tsx (interactive terminal)
  • Add copyOnSelect: true to OutputPanel.tsx (read-only output panel)

Root cause

xterm.js does not copy selected text to the clipboard by default. Without copyOnSelect: true, text selection has no clipboard effect — users cannot copy terminal output.

Test plan

  • Select text in the interactive terminal — verify it copies to clipboard
  • Select text in the output panel — verify it copies to clipboard

Generated by Mistaber Code — Computational Halacha Encoding Agent

Without this option xterm.js does not copy selected text to the
clipboard, making it impossible to copy terminal output.

Co-authored-by: Mistaber Code <code@mistaber.ai>
Copilot AI review requested due to automatic review settings June 8, 2026 09:31
@levi770
levi770 merged commit 4e0101b into main Jun 8, 2026
8 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables xterm.js “copy on select” behavior across the dashboard’s interactive terminal and read-only output panel so selected terminal text is immediately copied to the clipboard.

Changes:

  • Set copyOnSelect: true for the interactive session terminal (Terminal.tsx).
  • Set copyOnSelect: true for the read-only output terminal (OutputPanel.tsx).

Verdict: READY TO MERGE
Counts: [CRITICAL] 0 · [IMPORTANT] 0 · [NIT] 0
Scope detected: platform
Highlights:

  • (none)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
dashboard/frontend/src/components/Terminal/Terminal.tsx Enables copyOnSelect on the interactive xterm instance without altering the WS preflight/error-handling logic.
dashboard/frontend/src/components/BottomPanel/OutputPanel.tsx Enables copyOnSelect on the read-only xterm instance used for displaying output entries.

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.

2 participants