3.7.7macOS
Version 3.7.7
Added 13
- `it2 session set-status` has a new --progress option that starts or stops the tab's progress indicator for a program that reports through hooks but does not draw the indicator itself.
- The set_session_status Python API function takes the same progress argument.
- `it2 session add-clipping` and `archive-clippings` accept --tmux and --tmux-pane options.
- The Python API can run JavaScript in a browser session's page via Session.async_eval_javascript and return the result to the script.
- A browser session's toolbar can be hidden with Web > Show Toolbar, or from the Python API with Session.async_set_browser_toolbar_hidden.
- nushell is now a supported shell for shell integration, including automatic loading and SSH integration.
- Passwords in the Password Manager's Keychain storage can be exported to a passphrase-encrypted .iterm2passwords file and imported on another Mac.
- Settings > General > Export All Settings and Data can include Keychain passwords.
- When a host reached through SSH Integration asks to use it2, the user can choose "Always Allow This Host" to stop being asked on later connections.
- The Claude Code integration can be installed on a host reached through SSH Integration via iTerm2 > Install Claude Code Integration, including tmux Integration panes there.
- The Python API now has type annotations for use with editors and type checkers such as mypy.
- In iTerm2 Buddy, a web browser session can be tapped, scrolled, and typed into from a phone, with back, forward, reload, and an address field; requires an up-to-date iTerm2 Buddy.
- In a tmux Integration session on a host reached through SSH Integration, each pane knows which program is running, so the tab shows the job, the Jobs tool lists the pane's processes, and triggers watching for a program work there.
Changed 14
- The hook program for Claude Code and Codex is now `it2 handle-agent-hook`, with --agent codex for Codex, so the hook works wherever it2 does. behavior changed · inferred, marked in the notes below
- Every addressing option accepts an empty value as "not given", so a script can pass all of them and let it2 pick.
- Python API context menu items can be grouped into submenus and shown only where an expression is true, via ContextMenuProviderRPC's submenu and visible_when arguments.
- If the Code Review system prompt was customized, iTerm2 offers to update it the next time a review starts, showing the changes first and changing nothing else.
- "Support basic HTML tags in tab titles" applies to pane title bars too, rendering <b>, <i>, and <u> as styled text, and the window title shows the text without the tags.
- On a host reached through SSH Integration, it2 is a real command in ~/.iterm2/bin rather than a shell function, so scripts and tools can run it and commands reading standard input receive it.
- On a host reached through SSH Integration, an it2 command naming no session acts on the session it runs in rather than the focused one.
- A command run on a host with it2ssh host command, or by an SSH profile, can use it2. behavior changed · inferred, marked in the notes below
- it2ssh loads shell integration on the remote host by default regardless of the profile's Load Shell Integration Automatically setting; --no-shell-integration skips it, and SSH profiles follow their own setting.
- it2 works on a host reached through SSH Integration when the shell is tcsh, and when shell integration is not loaded there.
- The git status bar component shows the status of a repository on a host reached through SSH Integration by running git there, rather than requiring it2git on the host.
- Shell integration loads inside tmux, including on hosts reached by ssh from a tmux pane, without needing ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX; it still skips itself in GNU screen.
- In a tmux Integration pane on a host reached through SSH Integration, the git status bar component and other host-dependent features work without shell integration loaded in the pane.
- With it2git on a remote host, the git status bar component counts changes the same way as on this Mac: every untracked file counts, conflicts are not counted, and a detached HEAD shows its full commit ID.
Fixed 1
- Downloading a file or folder with "Download using SSH Integration" is much faster, no longer waiting for each kilobyte before requesting the next.
2 changes to check, marked in the notes below
From iTerm2
New Features:
it2 session set-statushas a new --progress option that starts or stops the tab’s progress indicator for a program that reports through hooks but does not draw the indicator itself. The set_session_status Python API function takes the same progress argument.- The hook program for Claude Code and Codex is
now
it2 handle-agent-hook(add --agent codex for Codex), so the hook works wherever it2 does. Existing Claude Code installs keep working; reinstalling the integration updates the hook entries. it2 session add-clippingandarchive-clippingsaccept --tmux and --tmux-pane, and every addressing option accepts an empty value as “not given”, so a script can pass all of them and let it2 pick.- The Python API can now run JavaScript in a browser session’s page and get the result back with Session.async_eval_javascript, so a script can read a page or fill in a form without clicking on the screen. The first time a script does this on a site, iTerm2 asks you to allow it. You can review and change these permissions, and those for loading URLs, in Settings > General > Magic.
- You can hide a browser session’s toolbar so the page fills the pane with Web > Show Toolbar, or from the Python API with Session.async_set_browser_toolbar_hidden.
- nushell is now a supported shell for shell integration, including automatic loading and SSH integration.
- Passwords saved in the Password Manager’s Keychain storage can now be exported to a passphrase-encrypted .iterm2passwords file and imported on another Mac. Use Export Passwords… and Import Passwords… in the Password Manager’s settings menu, or double-click the file. Settings > General > Export All Settings and Data can also include them.
- When a host reached through SSH Integration asks to use it2, you can now choose “Always Allow This Host” so it is not asked again on later connections. Review or remove these hosts in Settings > General > Magic > API access over ssh.
- The Claude Code integration can now be installed on a host reached through SSH Integration, so Claude Code running there reports its status too. Choose iTerm2 > Install Claude Code Integration from a session on that host, including a tmux Integration pane there. Uninstalling removes it from every host you are connected to.
Improvements:
- Python API context menu items can be grouped into submenus and shown only in sessions where an expression is true, such as a user variable your script sets. See ContextMenuProviderRPC’s submenu and visible_when arguments.
- If you customized the Code Review system prompt, iTerm2 offers to update it the next time a review starts, so reviews work in tmux and on remote hosts. It shows the changes first, and changes nothing else in your prompt.
- Downloading a file or folder with “Download using SSH Integration” is much faster. It used to wait for each kilobyte before asking for the next.
- The Python API now has type annotations, so editors and type checkers such as mypy can check scripts that use it.
- “Support basic HTML tags in tab titles” now applies to pane title bars too, so , , and render as styled text there instead of appearing literally. The window title shows the text without the tags, including titles set by a program or by tmux.
- In iTerm2 Buddy, you can now tap, scroll, and type into a web browser session from your phone, and use back, forward, reload, and an address field. The phone’s keyboard comes up when a text field on the page has focus. Requires an up-to-date iTerm2 Buddy.
- On a host reached through SSH Integration, it2 is now a real command in ~/.iterm2/bin rather than a shell function, so scripts, sh -c, and tools such as Claude Code’s Bash tool can run it, not just an interactive shell. Commands that read standard input now receive it.
- On a host reached through SSH Integration, an it2 command that names no session now acts on the session it runs in rather than the focused one. behavior changed · inferred
- A command run on a host with it2ssh host command, or by an SSH profile, can now use it2, as an interactive shell there can.
- it2ssh now loads shell integration on the remote host by default, whatever the current profile’s Load Shell Integration Automatically setting. Run it2ssh --no-shell-integration to skip it. SSH profiles still follow their own setting. behavior changed · inferred
- it2 now works on a host reached through SSH Integration when the shell is tcsh, and when shell integration is not loaded there. Without it iTerm2 copies nothing to the host, so it2 has to be installed there.
- The git status bar component now shows the status of a repository on a host reached through SSH Integration, by running git there. It used to need it2git set up on the host.
- Shell integration now loads inside tmux, including on a host you ssh to from a tmux pane, so marks, the current directory and host, and the git status work there. It used to need the environment variable ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX. It still skips itself in GNU screen.
- In a tmux Integration pane on a host reached through SSH Integration, the git status bar component and other features that depend on the session’s host now work without shell integration loaded in the pane.
- With it2git on a remote host, the git status bar component now counts changes the same way as for a repository on this Mac: every untracked file counts, conflicts are not counted as changes, and a detached HEAD shows its full commit ID.
- In a tmux Integration session on a host reached through SSH Integration, each pane now knows which program is running in it. The tab shows the job, the Jobs tool lists the pane’s processes, and triggers that watch for a program, such as entering the Claude Code workgroup, work there.
- SSH Integration now paces output from the remote host, so a program that prints a lot no longer fills the connection’s buffers. Control-C takes effect at once instead of after minutes of buffered output on a slow link, and typing stays responsive while output streams.
- On macOS 26, iTerm2 no longer lets macOS index its window and tab titles for search. Titles change constantly in a terminal, and indexing each one used a lot of CPU in Spotlight’s background processes.
Bug Fixes:
- Dragging a tab or pane no longer stutters with many windows open when the tab bar is always shown.
- The browser’s address field no longer runs under the loading spinner while a page loads, and returns to its full width afterward.
- Fixed more cases where a window could be made wider but not narrower.
- If iTerm2 quits unexpectedly while tmux integration is attached, and you switched to another app at some point after attaching, tmux integration resumes when iTerm2 relaunches with window restoration on. Before, the session that ran tmux -CC could show raw tmux output instead.
- If iTerm2 quits unexpectedly after you detach from tmux integration, the session that ran tmux -CC no longer gets tmux commands typed into its shell when window restoration brings it back.
- In an AI chat with an empty message field, the “↩ to submit” hint no longer overlaps a long placeholder.
- With KeePassXC as the browser password manager, “Remember this password” for a website’s sign-in dialog now saves the password instead of failing with “Could not save the password”.
- Hardened the handler for x-man-page: URLs so a malicious URL can no longer be crafted to run an unexpected command or make man render an arbitrary local file. Man section and page names are now checked against an allowlist of characters, and a URL with disallowed characters is rejected with a warning instead of opening. Thanks to vin01 for finding this vulnerability and to Gurpreet Shergill (@giki-shergill) for reporting it.
- Dragging a split divider in a tmux window now leaves the panes the way the drag showed them. Before, a different divider could move, or panes beside the divider could jump to other sizes when the drag ended.
- Fixed a crash from a trigger in a Dynamic Profile whose parameter has an unexpected type, such as a list. A text parameter written as a number, such as text to send, is now used as text instead of being ignored.
- Shell > SSH > Disconnect now recovers an SSH Integration session whose local it2ssh process was killed, even while the remote host is printing output. Previously the session stopped showing output and ignored input. Disconnect also works before advanced SSH features have started, instead of saying it can’t disconnect.
- After using tmux integration in an SSH Integration session, ending ssh no longer leaves the session ignoring typed text until Return is pressed.
- Ending an SSH Integration session no longer sometimes types YXV0b3BvbGw= into the local shell, or leaves the tab unable to start another it2ssh connection.
- A session no longer stops taking input when it2ssh is run on a host that was itself reached with it2ssh but lacks the Python that advanced SSH features need.
- After quitting with SSH Integration sessions open, relaunching with window restoration on no longer types stray text, such as cmVzZXQy, into the restored tabs’ new shells. Likewise, when iTerm2 restarts after a crash and an SSH Integration session’s ssh has ended in the meantime, the restored session no longer types cmVjb3Zlcg== into its shell and then ignores input.
- A file fetched over SSH Integration with Shell > ssh > Download Files… no longer stays listed as downloading in the Downloads menu after it finishes. Clear All in the Downloads menu now removes finished SSH Integration downloads, and their notification no longer says “Upload finished”.
- With the Browser Plugin installed, “Download using SSH Integration” in the context menu no longer does nothing when the file can’t be found on the remote host. It now shows a failed download that says why.
- When you connect with it2ssh user@host or an ssh:// URL, SSH Integration now records the user and host separately. Before, it treated all of “user@host” as the host name, which showed up in the file panel and the Downloads menu.
- Running tmux -CC in a session that is already part of tmux integration, for example over ssh, now explains that tmux integration can’t be nested instead of silently doing nothing.
- it2ssh no longer leaves the terminal waiting for Return when ssh fails before connecting, such as for a host name that doesn’t resolve. it2ssh now exits with ssh’s exit status.
- it2ssh no longer hangs when the host or command contains non-ASCII text, such as accented letters or emoji. If iTerm2 can’t read the arguments, it now ends the connection and explains why instead of leaving the tab stuck.
- When SSH Integration loads shell integration into a remote bash, the shell is now a login shell, so aliases and functions defined in ~/.profile or ~/.bash_profile are available.
- The notification for a failed download or upload now names the file and gives the reason, instead of showing only an error such as “File not found”. Canceling a transfer no longer reports it as failed. An SSH Integration transfer that fails because of file or folder permissions now says so.
- Downloading a folder over SSH Integration now tells you when files in it couldn’t be read and were left out, instead of reporting success with no mention of the missing files.
- An SSH Integration download that fails or is stopped no longer leaves an empty or partial hidden file in your Downloads folder. Stop now takes effect right away even when the connection has stalled.
- An SSH Integration download that can’t be saved into your Downloads folder when it …