Skip to content

Commit 18e7375

Browse files
committed
fix(claude hooks): enable fallback in hunk assignment for better accuracy
1 parent 56575f9 commit 18e7375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/but/src/command/claude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ pub(crate) fn handle_post_tool_call() -> anyhow::Result<ClaudeHookOutput> {
365365
let changes = but_core::diff::ui::worktree_changes_by_worktree_dir(project.path)?.changes;
366366
let (assignments, _assignments_error) = but_hunk_assignment::assignments_with_fallback(
367367
defer.ctx,
368-
false,
368+
true,
369369
Some(changes.clone()),
370370
None,
371371
)?;

0 commit comments

Comments
 (0)