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
fix(AsyncTmuxCmd): Handle text decoding manually for async subprocess
The AsyncTmuxCmd class was updated to handle text decoding manually since asyncio.create_subprocess_exec() doesn't support the text=True parameter that subprocess.Popen() supports.
Changes:
- Remove text=True and errors=backslashreplace from create_subprocess_exec()
- Handle bytes output by manually decoding with decode(errors="backslashreplace")
- Keep string processing logic consistent with tmux_cmd class
This fixes the ValueError("text must be False") error that occurred when trying to use text mode with asyncio subprocesses. The async version now properly handles text decoding while maintaining the same behavior as the synchronous tmux_cmd class.
0 commit comments