fix(tui): use esc back to leave the session dashboard#54
Merged
Conversation
mkonopelski-gd
force-pushed
the
claude/tui-sessions-detail-nav-d57b07
branch
from
July 23, 2026 14:29
754d0bf to
104e87d
Compare
esc to leave the session dashboard for consistencyesc back to leave the session dashboard
akozak-gd
previously approved these changes
Jul 23, 2026
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.
mkonopelski-gd
force-pushed
the
claude/tui-sessions-detail-nav-d57b07
branch
from
July 23, 2026 14:39
104e87d to
d5f8598
Compare
akozak-gd
self-requested a review
July 23, 2026 14:40
akozak-gd
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
On the session detail (dashboard) screen, returning to the sessions list required pressing
b. Every other screen usesescto go back. This aligns the dashboard with the app-wide convention: the binding isescand it's labeledback— the same generic gesture users learn everywhere else (e.g.WorkspaceMessagesScreen), not a screen-specific key or a destination-specific label ("sessions").Change
Two small edits in
mcp_server/tui/app.py:The footer now reads
esc back(auto-generated from the binding), consistent with the rest of the TUI.Why push, not pop
action_backkeepspush_screen(SessionsScreen())rather thanpop_screen(), because the dashboard can be the root screen when the TUI is launched to resume an existing run (app.py:2116) — popping there would land on a blank screen. Pushing a freshSessionsScreenalso reloads session statuses.Scope
Deliberately minimal.
WorkspaceMessagesScreenalready binds bothescandb; its redundantbalias is left alone sinceescalready works there.Testing
uv run pytest tests/test_tui_app.py→ 112 passed. No test asserted the oldbbinding or theaction_sessionsname (thecheck_actiontests reference action names, not keys).