Skip to content

Mac OS: minimized kitty terminal OS window is restored and focused after last non-minimized terminal closes #8913

Description

@j-c-m

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:

  1. Make sure kitty is not running.
  2. Start kitty in single instance mode kitty --config NONE -1
  3. Create New OS window -N, minimize.
  4. exit shell of non-minimized kitty os window.
  5. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions