Commit 2dbf9661211f

Vincent Demeester <vincent@sbr.pm>
2026-01-12 17:14:35
fix(kitty): remove non-working delegation patterns
Kitty SSH kitten hostname delegation patterns don't work reliably with slashes in hostnames (e.g., aomi.sbr.pm/claude/home). The glob patterns like */* and */*/* don't match as expected. The zsh function approach already handles this correctly by detecting "/" in the first argument and using raw ssh for those cases. References: - Kitty SSH kitten docs: https://sw.kovidgoyal.net/kitty/kittens/ssh/ - Delegation discussion: https://github.com/kovidgoyal/kitty/discussions/6609 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 84d073e
Changed files (1)
home
common
desktop
home/common/desktop/kitty.nix
@@ -99,14 +99,9 @@
     # SSH kitten configuration - delegate to standard SSH for shpool sessions
     # Hosts with / pattern (e.g., host.domain/session) use RemoteCommand which conflicts with the kitten
     "kitty/ssh.conf".text = ''
-      # Delegate to standard SSH for shpool session patterns (host/session/subsession)
-      # This allows RemoteCommand to work without Kitty's SSH kitten interference
-      # Match patterns like: host/session, host/session/name, host/session=dir
-      hostname */*
-      hostname */*/*
-      hostname */*=*
-      hostname */*/*=*
-      delegate ssh
+      # NOTE: Kitty SSH delegation with slash patterns doesn't work reliably
+      # The zsh function in programs.zsh.initExtra below handles this instead
+      # by detecting "/" in the hostname and using raw ssh for those cases
     '';
   };