diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3a95c915..ea2b2573 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,5 @@
+- Fixed Copy menu item being disabled in the terminal context menu when text was selected by mouse drag while Claude Code's TUI had mouse reporting enabled
+
# 1.2.14 (2026-06-01)
- Fixed mode switching (e.g. auto → plan) becoming unreliable when Claude Code is actively working: the edit-mode selector now correctly reaches the target mode without overshooting
diff --git a/pom.xml b/pom.xml
index 72961232..8cde9216 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.github.nbplugins
netbeans-plugin-claude-code-gui
- 1.2.18-SNAPSHOT
+ 1.2.21-SNAPSHOT
nbm
Netbeans Plugin Claude Code GUI
NetBeans plugin that provides a GUI for Claude Code CLI — run claude code sessions directly inside the IDE.
diff --git a/src/main/java/io/github/nbplugins/claudecodegui/ui/NetBeansSettingsProvider.java b/src/main/java/io/github/nbplugins/claudecodegui/ui/NetBeansSettingsProvider.java
index 9a1fe22b..bf688372 100644
--- a/src/main/java/io/github/nbplugins/claudecodegui/ui/NetBeansSettingsProvider.java
+++ b/src/main/java/io/github/nbplugins/claudecodegui/ui/NetBeansSettingsProvider.java
@@ -70,4 +70,18 @@ public TextStyle getSelectionColor() {
public com.jediterm.terminal.emulator.ColorPalette getTerminalColorPalette() {
return ColorPaletteImpl.XTERM_PALETTE;
}
+
+ /**
+ * Forces JediTerm to treat mouse drags as local actions even when the
+ * running TUI (Claude Code) has enabled mouse reporting (DECSET 1000/1006).
+ * Without this, plain left-button drag is forwarded to the application
+ * instead of creating a text selection, so the right-click "Copy" menu item
+ * is permanently disabled (it is enabled iff {@code TerminalPanel.mySelection != null}).
+ * Claude Code's TUI does not rely on click-forwarding — option menus are
+ * handled separately by {@code ScreenContentDetector}/{@code ChoiceMenuPanel}.
+ */
+ @Override
+ public boolean forceActionOnMouseReporting() {
+ return true;
+ }
}