Commit 166ddfb
fix(restart): preserve window name after restart
Previous approach created temp-named window, then tried to rename
after killing old window. But killing the old window killed the
script running the rename.
New approach:
1. Rename old window to temp name (freeing the proper name)
2. Create new window with correct name immediately
3. Switch to new window
4. Kill old window via tmux run-shell (runs in tmux context)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0eb0e16 commit 166ddfb
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | 1701 | | |
1705 | | - | |
1706 | | - | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
1707 | 1706 | | |
1708 | | - | |
1709 | | - | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
1710 | 1715 | | |
1711 | 1716 | | |
1712 | 1717 | | |
1713 | 1718 | | |
1714 | 1719 | | |
1715 | | - | |
1716 | 1720 | | |
1717 | 1721 | | |
1718 | 1722 | | |
| |||
0 commit comments