You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[refactor] Codebase cleanup: reduce duplication and improve consistency (#86)
* [refactor] Small fixes: dead code, constants, flag consistency
- Export errWorktreeNotFound from operations package, remove cmd/ duplicate
- Use flagForce constant in rename.go instead of hardcoded "force"
- Remove dead return value from parseCount in git/branch.go
- Merge identical hintDryRunMerged/hintDryRunStale into hintDryRunClean
- Remove stub Config.Validate() that always returned nil
- Replace package-level flag vars in list.go with local GetBool/GetString calls
* [refactor] Extract parallel collection helper
Add generic internal/parallel.Collect[T] to replace repeated
WaitGroup+semaphore pattern across 6 call sites (status, list, log,
mcp/tool_status, mcp/tool_list, mcp/tool_sync).
* [refactor] Unify JSON output types between CLI and MCP
Move shared JSON types (ListItem, StatusData, ExecData, etc.) to
internal/output/types.go. Both cmd/ and internal/mcp/ now import
from the same source, eliminating duplicate struct definitions.
* [refactor] Extract post-create setup from duplicate and restore
Add operations.PostCreateSetup() to encapsulate the copy-files,
install-deps, run-hooks sequence shared by add, duplicate, and restore.
Reduces duplication and ensures consistent error messages.
* [fix] Add fetch error warning to MCP sync handler
Surface git fetch errors as a warning field in the MCP sync result
instead of silently discarding them, matching the CLI behavior.
* [chore] Make MCP command help platform-agnostic
Remove Claude Code-specific configuration example from mcp command
long description.
* [refactor] Reduce parameter counts and add maxparams lint rule
Refactor three 8-parameter functions down to 5 parameters each by
bundling related args into structs, then add a custom lint rule to
prevent regression.
returnfmt.Errorf("worktree created but failed to copy files: %w\nTo retry, manually copy files to: %s\nTo remove the worktree: rimba remove %s", err, wtPath, newTask)
125
-
}
126
-
127
-
// Dependencies — prefer cloning from source worktree
0 commit comments