You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Name the iTerm2 overlay pane so the tab keeps its label (#309)
* Name the iTerm2 overlay pane so the tab keeps its label
A tab's label and the OS window title both come from the tab's active session,
and the overlay pane is created without a name of its own. Where the parent
session's name interpolates variables, the split inherits the name setting but
not the variables behind it, so both surfaces read empty for as long as the
review is up: measured on iTerm2 3.6.11, the overlay's name evaluates to
`<b></b>` while the parent reads `<b>PARENT</b>`.
Every other backend already labels its overlay from OVERLAY_TITLE — tmux via
-T, zellij --name, herdr --label, kitty --title, the emacs frame name. This
passes the same title into the iTerm2 branch and sets it on the session the
split returns, which also reverts on its own when the pane closes, the name
being the session's.
The title goes after the existing argv items on purpose: the test stub's
osascript arm dispatches on argument count and on `$3` being executable, so an
earlier insertion would shift the launch script out from under it.
Fixes#307
* Name the plan-review iTerm2 pane too
The planning hook's launcher splits the same way and computes its own
OVERLAY_TITLE, so plan reviews kept the unlabelled tab this branch fixes
for diff reviews.
Also trims the comment beside the fix: the pane falls back to the
profile's default title rather than rendering empty, and the OS window
title is not the session name, so only the tab label is at stake.
* Cover the iTerm2 overlay title with an args-capture test
The other backends pass OVERLAY_TITLE as a CLI flag the exit-code matrix
already runs; iTerm2 hands it to AppleScript through argv, which no test
read, so dropping the argument again would go unnoticed.
FAKE_OSASCRIPT_ARGS_FILE records each osascript invocation in the fake
backend, mirroring FAKE_AGTERM_ARGS_FILE, and the new test asserts the
split call ends with the title for all three launchers.
0 commit comments