ITADN

session yaml truncates window names containing hyphens

#316Closedshend-block 创建于 2026-01-23
bug
S
shend-blockcommented
### Description When running laio session yaml, window names containing hyphens are truncated because the regex used to parse window names only matches word characters (\w+), which excludes hyphens. ### Steps to reproduce: Create a tmux session with windows that have hyphens in their names: tmux new-session -s test -n my-window-name Run laio session yaml ### Expected behavior Window name should be my-window-name #### Actual behavior: Window name is truncated (e.g., only my or name appears depending on parsing state) ### Root cause In src/muxer/tmux/parser.rs line 191: let name_re = Regex::new(r"(?P<name>\w+)\s").unwrap(); The \w+ pattern only matches [a-zA-Z0-9_], not hyphens. ### Suggested fix let name_re = Regex::new(r"(?P<name>[\w-]+)\s").unwrap(); ### Environment laio v0.15.0 macOS
关闭于 2026-01-23 1 条评论