-
Notifications
You must be signed in to change notification settings - Fork 0
Enhance tmux-dev command with repo-prefixed session naming #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add repository name prefix to tmux session names using basename of git toplevel
- Session names now follow pattern: {repo-name}-{branch-name}
- Prevents conflicts when running multiple projects with same branch names
- Updated all operations (start, logs, monitor, stop) to use new naming scheme
- Enhanced examples to demonstrate multi-project workflow scenarios
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
Claude finished @memorysaver's task —— View job PR Review Complete ✅Review Tasks:
Review FeedbackThis PR successfully addresses session naming conflicts by implementing repository-prefixed session names. The changes are well-structured and consistent across all operations. 🟢 Strengths
🟡 Potential Issues & Recommendations1. Branch Name Edge Cases (claude/commands/tmux-dev.md:12-14)Branch names with special characters may cause issues:
Recommendation: Consider sanitizing branch names: BRANCH=$(git rev-parse --abbrev-ref HEAD | sed 's|/|_|g')2. Git Command Error Handling (claude/commands/tmux-dev.md:12-13)The git commands could fail if:
Recommendation: Add error handling guidance: REPO=$(basename $(git rev-parse --show-toplevel 2>/dev/null) || echo "unknown")
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "detached")3. Session Name LengthLong repository names + branch names could create unwieldy session names. Recommendation: Document any tmux session name length limitations. 🟢 Security Assessment
🟢 Performance Assessment
🟡 Test CoverageThe PR includes a manual test plan, but consider adding:
🔍 Minor Improvements
SummaryThis is a solid enhancement that solves a real problem with minimal risk. The implementation is consistent and well-documented. The main recommendation is to add branch name sanitization to handle special characters gracefully. Recommendation: ✅ Approve with minor suggestions |
- Add branch name sanitization to replace '/' with '_' for session compatibility - Add error handling for git commands with fallback values - Update all examples to reflect sanitized session names - Add documentation about tmux session name limitations - Ensure robust behavior in non-git directories and edge cases 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Claude finished @memorysaver's task —— View job PR Review Tasks
Review FeedbackThis PR successfully addresses session naming conflicts by implementing repository-prefixed session names. The changes are well-structured and consistent across all operations. 🟢 Strengths
🟡 Potential Issues & Recommendations1. Branch Name Edge Cases (claude/commands/tmux-dev.md:12-14)Branch names with special characters may cause issues:
Recommendation: Consider sanitizing branch names: BRANCH=$(git rev-parse --abbrev-ref HEAD | sed 's|/|_|g')2. Git Command Error Handling (claude/commands/tmux-dev.md:12-13)The git commands could fail if:
Recommendation: Add error handling guidance: REPO=$(basename $(git rev-parse --show-toplevel 2>/dev/null) || echo "unknown")
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "detached")3. Session Name LengthLong repository names + branch names could create unwieldy session names. Recommendation: Document any tmux session name length limitations. 🟢 Security Assessment
🟢 Performance Assessment
🟡 Test CoverageThe PR includes a manual test plan, but consider adding:
🔍 Minor Improvements
SummaryThis is a solid enhancement that solves a real problem with minimal risk. The implementation is consistent and well-documented. The main recommendation is to add branch name sanitization to handle special characters gracefully. Recommendation: ✅ Approve with minor suggestions |
Summary
{repo-name}-{branch-name}Test plan
🤖 Generated with Claude Code