Modify the pre-commit hook to detect when a commit message already contains a taskid in the format "(id)" and skip adding the taskid from the branch name in that case. This prevents duplicate taskids and respects manually added taskids in commit messages.