Repository navigation
v1.43.2 - Fix terminal closing by setting correct working directory
Bug Fix
Fixed an issue where terminal windows weren't being closed because the session's working directory didn't match the worktree path.
Root cause:
When the terminal opened, it started in the home directory (~) and then ran the script. iTerm2's path of session property was returning the home directory, not the worktree, so the matching logic couldn't find the correct window to close.
The fix:
The terminal now explicitly cds to the worktree directory before running the script:
cd "/path/to/worktree" && /bin/bash "/path/to/worktree/.claude-runner.sh"This ensures that iTerm2's session path correctly reflects the worktree directory, enabling reliable terminal window closing when running cis clean.