You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(control_mode): Add transparent subprocess fallback for format strings
Implements automatic subprocess fallback for commands with format strings
(-F flag), since tmux control mode doesn't support custom format strings.
Changes:
- Move contextlib import to module level (fixes __del__ ImportError warning)
- Add _has_format_flag() helper to detect format string arguments
- Update run() to transparently fallback to subprocess for -F commands
- Remove -F filtering from _filter_args() (no longer needed)
- Update docstrings to reflect new fallback behavior
This ensures all operations work correctly while maintaining 80-90% of
operations via fast control mode. Operations requiring format strings
(new_session, new_window, split) automatically use subprocess.
Fixes: ImportError during shutdown, skipped test due to format limitation
Performance: Control mode still 10-50x faster for query operations
0 commit comments