From d43004e4b9ea4234b38d4772ffd799e8cb1bfb3d Mon Sep 17 00:00:00 2001 From: disqualifier Date: Thu, 25 Jun 2026 18:42:26 -0400 Subject: [PATCH] feat: tmux send-keys settings in install.sh bootstrap append escape-time 0, large history-limit, allow-passthrough, and extended-keys to ~/.tmux.conf under an idempotent marker block (no clobber). required for reliable keystroke injection and for notifications/modified-keys to reach the claude pane. Signed-off-by: disqualifier --- install.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/install.sh b/install.sh index a3f86db..1abc70b 100755 --- a/install.sh +++ b/install.sh @@ -144,4 +144,29 @@ else echo " (no systemd user instance — using rc-based autostart; that's normal on WSL)" fi +# 8. tmux settings for reliable send-keys (idempotent ~/.tmux.conf append) ------- +say "configuring tmux for reliable send-keys (~/.tmux.conf)" +TMUX_CONF="$HOME/.tmux.conf" +TMUX_MARKER="# >>> claudedo tmux >>>" +touch "$TMUX_CONF" +if grep -qF "$TMUX_MARKER" "$TMUX_CONF"; then + echo " claudedo tmux block already present (not duplicating)" +else + cat >> "$TMUX_CONF" <<'TMUXCONF' + +# >>> claudedo tmux >>> +# settings for reliable keystroke injection + notifications (do not edit inside the +# markers; re-run install.sh to refresh). escape-time 0 stops injected Escape from +# being misread; allow-passthrough + extended-keys let notifications and modified +# keys (Shift+Enter) reach the claude pane; the larger history-limit keeps scrollback. +set -g escape-time 0 +set -g history-limit 50000 +set -g allow-passthrough on +set -s extended-keys on +set -as terminal-features 'xterm*:extkeys' +# <<< claudedo tmux <<< +TMUXCONF + echo " appended claudedo tmux settings to $TMUX_CONF (reload: tmux source-file ~/.tmux.conf)" +fi + say "done. next: 'claudedo test-audio' then 'claudedo start'"