mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-17 22:13:08 +00:00
feat: Add conflict source branch tracking and fix auto-mode subscription cascade
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user