From f824cc2453e53fd25967436a7e5720503cd897c7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 22 Aug 2025 20:02:32 +0530 Subject: [PATCH] ... --- kitty/session.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/session.py b/kitty/session.py index ccd3dcb2a..e859877bf 100644 --- a/kitty/session.py +++ b/kitty/session.py @@ -488,6 +488,7 @@ def goto_session(boss: BossType, cmdline: Sequence[str]) -> None: tb = traceback.format_exc() boss.show_error(_('Failed to create session'), _('Could not create session from {0} with error:\n{1}').format(path, tb)) else: + # Ensure newly created session is focused needed when it doesn't create its own OS Windows. switch_to_session(boss, session_name)