Skip to content

v1.43.0 - Improved terminal closing reliability

Choose a tag to compare

@MikeOuroumis MikeOuroumis released this 21 Jan 03:40
· 26 commits to main since this release

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 uses lsof to 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.