fix(FN-4508): complete Step 3 — invalidate stale-resolved cache metadata
Fusion-Task-Id: FN-4508 Fusion-Task-Lineage: 948a9cae-3975-4f15-bd47-2f88b379171d
This commit is contained in:
@@ -1481,7 +1481,19 @@ export class SelfHealingManager {
|
||||
startPoint: task.baseCommitSha ?? task.mergeDetails?.mergeTargetBranch ?? "main",
|
||||
});
|
||||
|
||||
if (inspection.kind === "stale" || inspection.kind === "stale-resolved") {
|
||||
if (inspection.kind === "stale") {
|
||||
continue;
|
||||
}
|
||||
if (inspection.kind === "stale-resolved") {
|
||||
await this.store.updateTask(task.id, {
|
||||
worktree: null,
|
||||
branch: null,
|
||||
baseCommitSha: null,
|
||||
});
|
||||
await this.store.logEntry(
|
||||
task.id,
|
||||
`[recovery] cache-invalidate ${task.id} branch=${task.branch ?? "?"} reason=stale-resolved-no-live-ref-or-mapping`,
|
||||
);
|
||||
continue;
|
||||
}
|
||||
if (inspection.kind === "tip-already-merged") {
|
||||
|
||||
Reference in New Issue
Block a user