Conversation
…pository management
…modules and updating imports
… with subprocess for session handling
- Introduced `_alphanumeric_name` to sanitize repo names for tmux session names. - Added `_make_session_name` to generate unique session names using a coolname slug. - Implemented `list_repo_sessions` to retrieve existing tmux sessions for a repo. - Created `create_tmux_session` to handle session creation with uniqueness checks. - Added `kill_tmux_session` to facilitate session termination. - Updated `open_in_tmux` to utilize the new session creation logic. test(tui): add comprehensive tests for TUI components - Created `test_tui.py` with tests for various TUI screens and components. - Added tests for `GitDirectorConsole`, `ConfirmScreen`, `ActionMenuScreen`, and `RemoveSessionScreen`. - Included tests for session management interactions and UI behavior. chore(deps): update dependencies in lock file - Added `coolname` package for generating unique session names. - Updated `pytest-asyncio` to support both Python 3.9 and 3.10+. - Included `backports-asyncio-runner` for compatibility with Python versions < 3.10.
…rocess interactions
…ux session handling
…d update dependencies - Updated test class names and methods in `test_cli.py` to reflect changes from add/remove commands to link/unlink commands. - Adjusted mock manager patches and assertions accordingly. - Modified `test_extras.py` to remove unnecessary imports and streamline code. - Updated `uv.lock` to upgrade `click` to version 8.3.2, `gitdirector` to version 1.1.0, and `ruff` to version 0.15.9, along with other dependency updates.
Enhance TUI console and tmux session management with error handling
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.
This pull request introduces a major feature update to GitDirector, transforming it from a simple CLI tool into a fully interactive TUI application with advanced repository management, tmux session integration, and support for launching AI coding agents. The release also revises the command set (notably replacing
add/removewithlink/unlink), adds new commands (cd,console,autoclean), and overhauls the documentation to reflect these capabilities. Several new dependencies are introduced to support the TUI and tmux features.The most important changes are:
Major Feature Additions
gitdirector console) for managing repositories with live status, filtering, sorting, and integrated actions (open tmux session, launch AI agent, etc.), using thetextualandrichlibraries. [1] [2] [3]cdcommand to open/switch to per-repo tmux sessions, andautoclean sessionsto clean up stale sessions. [1] [2] [3]Command Set and CLI Overhaul
add/removecommands withlink/unlink, and updated all documentation, help, and code accordingly. Added new commands:cd,console,autoclean. Improved help output and usage documentation. [1] [2] [3] [4]listandpullcommands for concurrent execution and richer output usingrichtables and spinners. [1] [2]Dependency and Packaging Updates
libtmux,textual,coolname, andpytest-asynciofor development. Updated version to1.1.0. [1] [2] [3]Documentation
README.mdto describe the TUI, tmux, AI agent launching, new commands, and installation requirements. [1] [2] [3]These changes collectively make GitDirector a much more powerful and user-friendly tool for developers managing multiple git repositories.