Describe the bug
The minimized kitty terminal is being restored and focused after closing foreground kitty terminals in single instance mode.
This also impacts normal mode, but it won't restore and focus an OS window across instances.
To Reproduce
Steps to reproduce the behavior:
- Make sure kitty is not running.
- Start kitty in single instance mode
kitty --config NONE -1
- Create New OS window -N, minimize.
exit shell of non-minimized kitty os window.
- minimized OS window is now restored and focused in foreground ( I don't think this is the correct behavior)
Environment details
kitty 0.42.2 (b1334fdc19) created by Kovid Goyal
Darwin JM-MacBook-Air-M2.local 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:51 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T8112 arm64
ProductName: macOS ProductVersion: 15.6 BuildVersion: 24G84
OpenGL: '4.1 Metal - 89.4' Detected version: 4.1
Frozen: True
Fonts:
medium: Menlo-Regular: /System/Library/Fonts/Menlo.ttc
Features: ()
bold: Menlo-Bold: /System/Library/Fonts/Menlo.ttc
Features: ()
italic: Menlo-Italic: /System/Library/Fonts/Menlo.ttc
Features: ()
bi: Menlo-BoldItalic: /System/Library/Fonts/Menlo.ttc
Features: ()
Paths:
kitty: /Applications/kitty.app/Contents/MacOS/kitty
base dir: /Applications/kitty.app/Contents/Resources/kitty
extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
system shell: /bin/zsh
System color scheme: light. Applied color theme type: none
Config options different from defaults:
Changed shortcuts:
cmd+k → clear_terminal_and_scrollback
ctrl+cmd+, → reload_config
ctrl+cmd+l → clear_screen
opt+cmd+k → clear_scrollback
opt+cmd+r → reset_terminal
shift+cmd+/ → open_kitty_website
Important environment variables seen by the kitty process:
PATH /Applications/kitty.app/Contents/MacOS:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/jmiller/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/jmiller/bin:/Users/jmiller/.local/bin:/Users/jmiller/.local/bin
LANG en_US.UTF-8
EDITOR vim
SHELL /bin/zsh
USER jmiller
LC_ALL en_US.UTF-8
Describe the bug
The minimized kitty terminal is being restored and focused after closing foreground kitty terminals in single instance mode.
This also impacts normal mode, but it won't restore and focus an OS window across instances.
To Reproduce
Steps to reproduce the behavior:
kitty --config NONE -1exitshell of non-minimized kitty os window.Environment details