Repository navigation
v1.43.0 - Improved terminal closing reliability
What's New
Significantly improved the reliability of closing terminal windows when running cis clean.
Improvements:
- Working directory matching - iTerm2 sessions are now matched by their actual working directory path, not just window/session names. This is much more reliable since terminal titles are dynamic.
- Full path patterns - The complete worktree path is now used for matching, enabling precise directory-based identification.
- Process fallback - Added
killProcessesInDirectory()that useslsofto find and terminate shell processes (bash, zsh, node, claude) running in the worktree directory. This catches cases where AppleScript matching fails.
Why this matters:
Previously, terminal closing relied on matching window names against patterns like "Issue #42" or the folder name. This often failed because terminal titles change based on what's running. The new approach matches against the session's actual working directory, which is always the worktree path.