Skip to content

Fix #342: enable extended-keys for Shift+Enter in tmux sessions#343

Merged
asheshgoplani merged 1 commit intomainfrom
fix/342-shift-enter-tmux
Mar 17, 2026
Merged

Fix #342: enable extended-keys for Shift+Enter in tmux sessions#343
asheshgoplani merged 1 commit intomainfrom
fix/342-shift-enter-tmux

Conversation

@asheshgoplani
Copy link
Copy Markdown
Owner

Summary

  • Added set -sq extended-keys on (tmux 3.2+ server option) to both session creation and lazy configuration paths in internal/tmux/tmux.go
  • Updated install.sh tmux config template (v2 -> v3) to include extended-keys on for users who configure via the installer
  • Uses -sq flags (server option + quiet) so older tmux versions that don't support extended-keys silently ignore it

Root cause

tmux drops Shift+Enter (and other modified key sequences) by default. The extended-keys on server option tells tmux to forward these sequences to applications running inside panes when they request it.

Test plan

  • make ci passes (lint + test + build)
  • Manual: create session, attach, verify Shift+Enter produces newline in Claude Code
  • Manual: verify no regression on older tmux (<3.2) where option is silently ignored

Fixes #342

tmux sessions created by agent-deck were missing the `extended-keys on`
server option (tmux 3.2+), causing Shift+Enter and other modified key
sequences to be dropped instead of forwarded to applications like Claude
Code. Added the option to both session creation and lazy configuration
paths, with -sq flags for backward compatibility with older tmux.

Also updated install.sh tmux config template (v2 -> v3) to include
extended-keys for users who configure tmux via the installer.

Fixes #342

Committed by Ashesh Goplani
@asheshgoplani asheshgoplani marked this pull request as ready for review March 17, 2026 10:48
@asheshgoplani asheshgoplani merged commit 9cfafce into main Mar 17, 2026
1 check passed
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.

Shift+Enter does not work

1 participant