Conversation
- Add osExit variable to allow mocking os.Exit in tests - Add return statements after osExit calls to prevent execution when mocked - Re-enable previously commented test cases for error conditions - Fix handleProjectCommand to prevent index out of range in tests - Ensure all command handlers are properly testable
- Add osExit variable to make router testable - Add return statement after osExit to prevent nil pointer dereference - Add comprehensive tests for error cases and unknown commands - Ensure router behaves correctly when os.Exit is mocked
- Add TestHandleNewCommand to test various new command scenarios - Add TestShellWrapperCDParsing to document expected shell wrapper behavior - Enhance integration test to verify CD: extraction from mixed output - Tests capture the regression where CD: in multi-line output wasn't handled
- Update shell wrapper to parse CD: commands from any line in output - Fix regression where 'wt new' showed CD: output instead of changing directory - Shell wrapper now correctly extracts CD: path from mixed git/status output - Preserves all non-command output while still executing CD/EXEC commands The previous implementation only checked if output started with "CD:", but git worktree commands output status messages before the CD: line. Now the wrapper parses all lines and executes CD: commands found anywhere in the output.
- Add help target as default when running 'make' without arguments - Use ## comments to document each target inline - Help command automatically extracts and displays all documented targets - Sort targets alphabetically for easier navigation - Much more maintainable than a separate help text block Now 'make' shows all available targets with descriptions, making the build system more discoverable.
- Add section headers to group related targets together - Reorganize targets so related commands appear consecutively - Remove alphabetical sorting in favor of logical grouping - Groups: Building & Installation, Testing, Linting & Code Quality, Shell Integration Testing, and Utilities - Much easier to find related commands in help output The help output now shows commands in a logical order that makes sense for typical workflows, rather than alphabetically.
- Update zsh completion to suggest existing branch names when typing new branch - Update bash completion to provide branch suggestions after 'wt new' - Helps users see existing branch naming conventions - Makes it easier to create branches with similar naming patterns Now when you type 'wt new feature<TAB>', you'll see existing branches that might help you choose an appropriate name or follow conventions.
- Skip header row when parsing wt list output for completions - Add 'tail -n +2' to both bash and zsh completion scripts - Fixes issue where "Branch" (from header) appeared as a branch name - Now only actual branch names appear in completion lists The completion was parsing the header row "Index Branch Path" and treating "Branch" as if it were an actual branch name.
- Remove the broken interactive command selector when running 'wt' without args - Now shows clean usage information instead of fuzzy finder - Keep fuzzy selection for branches (--fuzzy flag) which works well - Remove unused SelectCommandInteractively and related code - Update tests to match new behavior The interactive command selector had significant rendering issues: - Layout problems with text cutoff - Overwhelming green highlighting for all items - Terminal compatibility issues with the fuzzy finder library Showing usage information when no command is provided is more in line with Unix tool conventions and provides better user experience.
…lity - Use filepath.EvalSymlinks to resolve /private/var vs /var differences - Fixes failing TestCompleteWorkflow on macOS where temp directories can be accessed via both /var and /private/var paths - This resolves the pre-push hook test failures
|
Claude finished @tobiase's task —— View job PR Review: Update claude integrationI've completed a comprehensive review of this pull request focusing on code quality, potential bugs, performance, security, and test coverage. Review Checklist:
SummaryThis is a well-structured PR that significantly improves the Claude Code integration and overall codebase quality. The changes demonstrate good architectural thinking and follow the repository's established patterns. 🟢 Positive ChangesGitHub Workflows & CI/CD
Makefile Improvements
Code Architecture
Documentation
🟡 Areas for ImprovementCode Quality Issues1. Shell Wrapper Complexity (
|
No description provided.