diff --git a/CHANGELOG.md b/CHANGELOG.md
index 74379d5d..645a57b7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,4 @@
+- Fixed Cancel button sending Ctrl+C instead of Esc, making it impossible to exit /usage and similar screens
- Fixed Default profile settings not saving in Tools → Options → Profiles (https://github.com/nbclaudecodegui/NetbeansClaudeCodeGui/issues/31)
- Fixed "Open with Claude Code" context menu not applying Default profile settings (API key, proxy, Extra CLI args, etc.) (https://github.com/nbclaudecodegui/NetbeansClaudeCodeGui/issues/23)
- Added Advanced tab in Tools → Options → Claude Code with Debug mode, Hang timeout, and a new "Enable MCP integration" toggle (disabling it skips the --mcp-config flag while hooks remain active)
diff --git a/docs/to-do.md b/docs/to-do.md
index ba138352..04adb0d9 100644
--- a/docs/to-do.md
+++ b/docs/to-do.md
@@ -1,8 +1,9 @@
# Bugs
+- [x] Невозможно выйти из /usage по кнопке cancel. Отладить
- [ ] Улучшить определение моделей: Из списка
```
- ❯ /model
+ ❯ /model
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Select model
diff --git a/pom.xml b/pom.xml
index 91d144ab..49db55d5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.github.nbclaudecodegui
netbeans-claude-code-gui
- 0.20.7-SNAPSHOT
+ 0.20.8-SNAPSHOT
nbm
Netbeans 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/nbclaudecodegui/controller/ClaudeSessionController.java b/src/main/java/io/github/nbclaudecodegui/controller/ClaudeSessionController.java
index 5d5243e8..6cdc65e8 100644
--- a/src/main/java/io/github/nbclaudecodegui/controller/ClaudeSessionController.java
+++ b/src/main/java/io/github/nbclaudecodegui/controller/ClaudeSessionController.java
@@ -316,13 +316,13 @@ public void sendPrompt(String text) {
}
/**
- * Sends Ctrl+C (0x03) to the PTY and transitions to READY state.
+ * Sends ESC (0x1B) to the PTY and transitions to READY state.
* No-op if no PTY connector is active.
*/
public void cancelPrompt() {
if (connector == null) return;
try {
- sendCancelToPty(new byte[]{0x03});
+ sendCancelToPty(new byte[]{0x1b});
} catch (IOException ex) {
LOG.warning("cancelPrompt failed: " + ex.getMessage());
}