feat(FN-709): store branch name on tasks for reliable merge recovery
- Add 'branch' field to Task and ArchivedTaskEntry types with DB migration - Executor stores branch name on task after worktree assignment - Merger reads branch from task metadata instead of relying on worktree state - Implement non-destructive conflict recovery in prepareForTask with reset/clean - Add tests for branch storage, merger branch reading, and worktree recovery
This commit is contained in:
@@ -402,8 +402,14 @@ export class Database {
|
||||
});
|
||||
}
|
||||
|
||||
if (version < 6) {
|
||||
this.applyMigration(6, () => {
|
||||
this.addColumnIfMissing("tasks", "branch", "TEXT");
|
||||
});
|
||||
}
|
||||
|
||||
// Future migrations go here:
|
||||
// if (version < 6) { this.applyMigration(6, () => { ... }); }
|
||||
// if (version < 7) { this.applyMigration(7, () => { ... }); }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user