Fix input detection to avoid message injection overlap

Merged
KH
1y ago
+332-310

Summary

  • strip ANSI/prompt lines and reuse captured line for input detection
  • gate cursor-stable fallback behind visible-input check to avoid injecting over active typing
  • ready for review; tests: npm test -- tmux-wrapper