🚀 CodeBuddy Code v2.59.0 Release
✨ New Features
Hook-Driven Worktree Support
Provides isolated workspace capability for non-Git version control systems such as SVN and Perforce. Through the WorktreeCreate and WorktreeRemove Hook events, you can fully customize the creation and cleanup logic for worktrees, no longer limited to Git repositories:
- Even in a Git repository, if
WorktreeCreateHook is configured, the Hook-based approach takes priority - Hook-based worktrees always display the keep/delete menu on exit, preventing errors in non-Git projects caused by missing Git commands
Worktree Base Branch Specification
The --worktree parameter now supports using --worktree-branch <branch> to specify the base branch:
- Supports both remote branches (
origin/develop) and local branches (feature/foo) - Automatically falls back to the remote default branch with a warning when the specified branch does not exist, without interrupting the startup process
- The
EnterWorktreetool now supports thebranchparameter as well
🔧 Improvements
- Plan Mode Approval: Fixed an issue where the ExitPlanMode tool could not correctly display plan content when approving in the Web UI. Users can now see the complete plan content and permission request list in the approval dialog
- Image Read Deduplication: Fixed an issue where an image at the same path was incorrectly deduplicated after being modified. The system now correctly detects file updates and returns the latest image content
- Worktree Hook Compatibility: Completed the SDK protocol and documentation for
WorktreeCreateandWorktreeRemove, ensuring custom worktree hooks receive full context and can integrate stably
🐛 Bug Fixes
- ACP Connection Cleanup: Fixed an issue where old connections were not properly cleaned up when starting a new chat, causing broadcast messages to be rendered multiple times