Skip to content

kitten ssh errors out in a cloned tab #8161

@xuhdev

Description

@xuhdev

Describe the bug
In a cloned tab, kitten ssh results in an error:

Incorrect request id: '41241-1' expecting the KITTY_PID-KITTY_WINDOW_ID for the current kitty window

Backtrace:

Traceback (most recent call last):
  File "/usr/bin/../lib64/kitty/kittens/ssh/utils.py", line 133, in get_ssh_data
    except Exception as e:
            ^^^^^^^^^^^^^^
ValueError: Incorrect request id: '41241-1' expecting the KITTY_PID-KITTY_WINDOW_ID for the current kitty window

To Reproduce
Steps to reproduce the behavior:

  1. Start kitty with kitty --config None
  2. Run clone-in-kitty --type=tab
  3. Run kitten ssh <hostname> in the cloned tab

The above error is shown.

Environment details

kitty 0.37.0 created by Kovid Goyal
Linux aspire 6.12.5-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Dec 15 16:48:23 UTC 2024 x86_64
S
Kernel 6.12.5-200.fc41.x86_64 on an x86_64 (/dev/tty)

Running under: Wayland (sway version 1.10) missing: blur
OpenGL: '4.6 (Core Profile) Mesa 24.2.8' Detected version: 4.6
Frozen: False
Fonts:
  medium: InconsolataGoNFM: /home/hong/.fonts/InconsolataGoNerdFontMono-Regular.ttf:0
          Features: ()
    bold: InconsolataGoNFM-Bold: /home/hong/.fonts/InconsolataGoNerdFontMono-Bold.ttf:0
          Features: ()
  italic: InconsolataGoNFM-Bold: /home/hong/.fonts/InconsolataGoNerdFontMono-Bold.ttf:0
          Features: ()
      bi: InconsolataGoNFM-Bold: /home/hong/.fonts/InconsolataGoNerdFontMono-Bold.ttf:0
          Features: ()
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib64/kitty
  extensions dir: /usr/lib64/kitty/kitty
  system shell: /bin/zsh

Config options different from defaults:

Important environment variables seen by the kitty process:
	PATH                                /home/hong/.nvm/versions/node/v22.12.0/bin:/home/hong/.local/share/pnpm:/home/hong/.local/bin:/home/hong/.cargo/bin:/home/hong/.cache/antidote/paulirish/git-open:/home/hong/.cache/antidote/wofr06/lesspipe:/home/hong/.local/opt/emacs/bin:/home/hong/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
	LANG                                en_US.UTF-8
	VISUAL                              /home/hong/.local/bin/e
	EDITOR                              /home/hong/.local/bin/e
	SHELL                               /bin/zsh
	DISPLAY                             :0
	WAYLAND_DISPLAY                     wayland-1
	USER                                hong
	XCURSOR_SIZE                        24
	XDG_SEAT                            seat0
	XDG_SESSION_DESKTOP                 sway
	XDG_SESSION_TYPE                    wayland
	XDG_SESSION_CLASS                   user
	XDG_VTNR                            2
	XDG_SESSION_ID                      2
	XDG_RUNTIME_DIR                     /run/user/1000
	XDG_DATA_DIRS                       /home/hong/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions