From 95baba54c0fdc5c64f8c6bff1a84c7bd1d0947a4 Mon Sep 17 00:00:00 2001 From: ProofOfConcept Date: Sun, 8 Mar 2026 18:39:47 -0400 Subject: [PATCH] tmux: use send-keys -l for literal text input Without -l, tmux send-keys treats spaces as key-name separators, so multi-word messages like "This is your time" get split into individual unrecognized key names instead of being typed as text. This caused idle nudges to arrive as blank messages. --- src/bin/poc-daemon/tmux.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin/poc-daemon/tmux.rs b/src/bin/poc-daemon/tmux.rs index afd5417..f8dacb8 100644 --- a/src/bin/poc-daemon/tmux.rs +++ b/src/bin/poc-daemon/tmux.rs @@ -51,8 +51,12 @@ pub fn send_prompt(pane: &str, msg: &str) -> bool { } thread::sleep(Duration::from_secs(1)); - // Type the message - if !send(&[msg]) { + // Type the message (literal mode so spaces aren't key separators) + let ok = Command::new("tmux") + .args(["send-keys", "-t", pane, "-l", msg]) + .output() + .is_ok(); + if !ok { return false; } thread::sleep(Duration::from_millis(500));