Shift+Enter sendSequence doesn't work in terminal editor tabs

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

workbench.action.terminal.sendSequence keybinding works correctly in the terminal panel but does nothing in terminal editor tabs (terminals opened as editor tabs via workbench.action.createTerminalEditor).

This breaks Claude Code’s /terminal-setup which relies on Shift+Enter sending \u001b\r to insert a newline.

Steps to Reproduce

  1. Add this keybinding:
{
    "key": "shift+enter",
    "command": "workbench.action.terminal.sendSequence",
    "args": { "text": "\u001b\r" },
    "when": "terminalFocus"
}
  1. Open a terminal in the panel — press Shift+Enter — works (inserts newline)
  2. Open a terminal as an editor tab (workbench.action.createTerminalEditor) — press Shift+Enter — does nothing

Expected Behavior

sendSequence should work the same in terminal editor tabs as in the terminal panel.

Operating System

MacOS

Version Information

Version: 2.4.31
VSCode Version: 1.105.1
Commit: 3578107fdf149b00059ddad37048220e41681000
Date: 2026-02-08T07:42:24.999Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report. This is a known bug. Keybindings, including sendSequence, don’t work correctly in terminals opened in the editor area. They only work in the terminal panel.

This has been reported many times, and the team is aware:

Workaround for now: use the terminal panel instead of editor-area terminal tabs. Open a terminal via Terminal: Create New Terminal instead of Terminal: Create New Terminal in Editor Area.

I’ll update here when there’s news.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.