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
This commit is contained in:
copilot-swe-agent[bot]
2026-03-23 15:21:46 +00:00
parent e4b505b6ca
commit c2f6fd9155
2 changed files with 4 additions and 0 deletions

View File

@@ -168,6 +168,8 @@ Detailed list of changes
0.47.0 [future] 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`) - 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 - Graphics protocol: Fix crash when handling invalid PNG image with direct transmission

View File

@@ -254,6 +254,7 @@ class WindowDict(TypedDict):
created_at: int created_at: int
in_alternate_screen: bool in_alternate_screen: bool
neighbors: NeighborsMap neighbors: NeighborsMap
session_name: str
class PipeData(TypedDict): class PipeData(TypedDict):
@@ -2106,6 +2107,7 @@ class Window:
'created_at': self.created_at, 'created_at': self.created_at,
'in_alternate_screen': self.screen.is_using_alternate_linebuf(), 'in_alternate_screen': self.screen.is_using_alternate_linebuf(),
'neighbors': neighbors_map, 'neighbors': neighbors_map,
'session_name': self.created_in_session_name,
} }
def serialize_state(self) -> dict[str, Any]: def serialize_state(self) -> dict[str, Any]: