diff --git a/src/commands/helpers.ts b/src/commands/helpers.ts index 7a22a02..ef58ac5 100644 --- a/src/commands/helpers.ts +++ b/src/commands/helpers.ts @@ -81,6 +81,9 @@ export async function teardownSession(root: string, branch: string, worktree: st await state.removeSession(root, branch) } +/** Files that should be resolved by accepting "theirs" instead of using Claude. */ +const SKIP_RESOLVE = new Set(["bun.lock", "Cargo.lock"]) + /** Resolve conflict markers in files using Claude, then stage them. */ export async function resolveConflicts( files: string[], @@ -90,6 +93,12 @@ export async function resolveConflicts( for (let i = 0; i < files.length; i++) { const file = files[i] onFile(file, i + 1, files.length) + + if (SKIP_RESOLVE.has(basename(file))) { + await $`git rm -f -- ${file}`.cwd(cwd).nothrow().quiet() + continue + } + const content = await Bun.file(join(cwd, file)).text() const resolved = await vm.claudePipe(