From c2f6fd9155f8928a4f2515e402df516c481e9719 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Mar 2026 15:21:46 +0000 Subject: [PATCH] Expose session_name in kitten @ ls output for each window (fix #9732) Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com> Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/98770c1a-7605-4597-a5ce-f27b35315930 --- docs/changelog.rst | 2 ++ kitty/window.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 6ef6c7100..e41a7f289 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -168,6 +168,8 @@ Detailed list of changes 0.47.0 [future] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +- :doc:`remote control`: Expose :code:`session_name` in the output of ``kitten @ ls`` for each window (:iss:`9732`) + - Fix thickness of diagonal lines in box drawing characters not the same as horizontal/vertical lines (:iss:`9719`) - Graphics protocol: Fix crash when handling invalid PNG image with direct transmission diff --git a/kitty/window.py b/kitty/window.py index c9da657fe..4ff0ac395 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -254,6 +254,7 @@ class WindowDict(TypedDict): created_at: int in_alternate_screen: bool neighbors: NeighborsMap + session_name: str class PipeData(TypedDict): @@ -2106,6 +2107,7 @@ class Window: 'created_at': self.created_at, 'in_alternate_screen': self.screen.is_using_alternate_linebuf(), 'neighbors': neighbors_map, + 'session_name': self.created_in_session_name, } def serialize_state(self) -> dict[str, Any]: