Describe the bug
Detaching tabs using kitten @detach-tab resets the window layout of the tabs in split mode.
To Reproduce
Steps to reproduce the behavior:
- Use the following config:
allow_remote_control yes
enabled_layouts splits
kitten @launch --location=hsplit
Your tab should contain two windows, one stacked on top of the other
kitten @detach-tab
The tabs will now be vertically aligned, side by side
Screenshots
Original

After detaching

Environment details
kitty 0.37.0 (2531c31d02) created by Kovid Goyal
Darwin Yusufs-MBP.localdomain 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64
ProductName: macOS ProductVersion: 14.6.1 BuildVersion: 23G93
OpenGL: '4.1 Metal - 88.1' 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
Loaded config files:
minimal.conf
Config options different from defaults:
allow_remote_control yes
enabled_layouts ['splits']
Changed shortcuts:
cmd+k → clear_terminal_and_scrollback
ctrl+cmd+, → reload_config
opt+cmd+r → reset_terminal
shift+cmd+/ → open_kitty_website
Important environment variables seen by the kitty process:
PATH /Users/yusufshalaby/.asdf/shims:/Users/yusufshalaby/.asdf/bin:/Library/Frameworks/Python.framework/Versions/3.13/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/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:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/yusufshalaby/.cargo/bin:/Applications/kitty.app/Contents/MacOS:/Users/yusufshalaby/Library/Application Support/Coursier/bin:/Users/yusufshalaby/.local/bin:/opt/homebrew/opt/fzf/bin:/Users/yusufshalaby/.local/bin
LANG en_CA.UTF-8
VISUAL nvim
EDITOR nvim
SHELL /bin/zsh
USER yusufshalaby
Additional context
Minimal kitty.conf:
allow_remote_control yes
enabled_layouts splits
Describe the bug
Detaching tabs using kitten @detach-tab resets the window layout of the tabs in split mode.
To Reproduce
Steps to reproduce the behavior:
kitten @launch --location=hsplitYour tab should contain two windows, one stacked on top of the other
kitten @detach-tabThe tabs will now be vertically aligned, side by side
Screenshots

Original
After detaching

Environment details
Additional context
Minimal kitty.conf: