Skip to content

Fix 5 UI/UX issues: keybinds, PTY resize, dead session crash#38

Merged
shranchi0 merged 1 commit intoAshirBorah:mainfrom
shranchi0:fix/ui-ux-fixes
Feb 18, 2026
Merged

Fix 5 UI/UX issues: keybinds, PTY resize, dead session crash#38
shranchi0 merged 1 commit intoAshirBorah:mainfrom
shranchi0:fix/ui-ux-fixes

Conversation

@shranchi0
Copy link
Collaborator

Summary

  • PTY resize fix: Renamed _on_viewer_resizedon_viewer_resized so Textual auto-dispatches the resize message (was silently broken — terminal content never resized with the window)
  • Missing keybindings: Added show_diff (F10) and set_group (F11) to DEFAULT_KEYBINDINGS — these keys were registered in _BINDING_META but missing from the key manager, so pressing them did nothing
  • Missing binding meta: Added focus_search to _BINDING_META — Shift+Tab was in the key manager but never registered with Textual's binding system
  • Dead session crash guard: Wrapped send_input() in try/except OSError so typing into a dead session logs a debug message instead of crashing
  • Dead code cleanup: Removed redundant inline import subprocess (already imported at module top)

Test plan

  • ruff check passes
  • ruff format --check passes
  • All 268 tests pass
  • Manual: resize window while session is active — terminal content should reflow
  • Manual: press F10/F11 — should trigger show_diff/set_group actions
  • Manual: press Shift+Tab — should focus the search box
  • Manual: let a session die, then type — should not crash

- Rename _on_viewer_resized → on_viewer_resized so Textual auto-dispatches
  the resize message (PTY resize was silently broken)
- Add show_diff (F10) and set_group (F11) to DEFAULT_KEYBINDINGS so the
  keys actually fire
- Add focus_search to _BINDING_META so Shift+Tab is registered with Textual
- Catch OSError when sending input to a dead session instead of crashing
- Remove redundant inline `import subprocess` (already imported at top)
@shranchi0 shranchi0 merged commit 88df370 into AshirBorah:main Feb 18, 2026
6 checks passed
@shranchi0 shranchi0 deleted the fix/ui-ux-fixes branch February 18, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments