feat: Add conflict source branch tracking and fix auto-mode subscription cascade

This commit is contained in:
gsxdsm
2026-03-02 07:43:00 -08:00
parent c11f390764
commit 59b100b5cc
11 changed files with 35 additions and 24 deletions

View File

@@ -28,6 +28,8 @@ interface WorktreeInfo {
conflictType?: 'merge' | 'rebase' | 'cherry-pick';
/** List of files with conflicts */
conflictFiles?: string[];
/** The branch that is the source of the conflict (e.g. the branch being merged in) */
conflictSourceBranch?: string;
}
interface RemovedWorktree {

View File

@@ -959,10 +959,10 @@ export function useAutoMode(worktree?: WorktreeInfo) {
// Stop a specific feature
const stopFeature = useCallback(
async (featureId: string) => {
async (featureId: string): Promise<boolean> => {
if (!currentProject) {
logger.error('No project selected');
return;
return false;
}
try {
@@ -983,6 +983,7 @@ export function useAutoMode(worktree?: WorktreeInfo) {
message: 'Feature stopped by user',
passes: false,
});
return true;
} else {
logger.error('Failed to stop feature:', result.error);
throw new Error(result.error || 'Failed to stop feature');