From d5f8598e91fa955c9783a2eb70e060a8ed4c932a Mon Sep 17 00:00:00 2001 From: Mateusz Konopelski Date: Thu, 23 Jul 2026 16:22:51 +0200 Subject: [PATCH] fix(tui): use `esc back` to leave the session dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The session detail (dashboard) screen was the only screen using `b` to return to the sessions list; every other screen uses `esc`. Bind the action to `escape` and label it `back` (matching the other back functionalities) so users learn one generic gesture — esc goes back — rather than a screen-specific key or label. --- mcp_server/tui/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcp_server/tui/app.py b/mcp_server/tui/app.py index bf808f6..44439f8 100644 --- a/mcp_server/tui/app.py +++ b/mcp_server/tui/app.py @@ -470,7 +470,7 @@ class DashboardScreen(_SpecFlowScreen): Binding("x", "cancel", "cancel"), Binding("w", "clear", "clear ws"), Binding("s", "settings", "settings"), - Binding("b", "sessions", "sessions"), + Binding("escape", "back", "back"), Binding("c", "connect_client", "Add MCP to AI tool"), Binding("o", "open_workspace", "open ws"), Binding("enter", "open_workspace", "open ws", show=False), @@ -732,7 +732,7 @@ async def _clear_flow(self) -> None: def action_settings(self) -> None: self.app.push_screen(SettingsScreen()) - def action_sessions(self) -> None: + def action_back(self) -> None: self.app.push_screen(SessionsScreen()) def action_connect_client(self) -> None: