feat(KB-082): complete Step 3 — Clear error on retry

This commit is contained in:
gsxdsm
2026-03-29 21:42:10 -07:00
parent c330a62165
commit 9f5a171b24
2 changed files with 2 additions and 4 deletions

View File

@@ -148,13 +148,11 @@ export interface Task {
validatorModelId?: string;
/** Number of merge retry attempts made for this task (auto-merge conflict recovery) */
mergeRetries?: number;
/** Error message from the last failure, if task status is 'failed' */
/** Error message from the last failure, if the task failed during execution */
error?: string;
/** ISO-8601 timestamp of when the task last entered its current column.
* Used to sort cards within a column so that recently-moved cards appear at the top. */
columnMovedAt?: string;
/** Error message from the last failure, if the task failed during execution */
error?: string;
createdAt: string;
updatedAt: string;
}

View File

@@ -667,7 +667,7 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
res.status(400).json({ error: "Task is not in a failed state" });
return;
}
await store.updateTask(req.params.id, { status: undefined });
await store.updateTask(req.params.id, { status: undefined, error: undefined });
await store.logEntry(req.params.id, "Retry requested from dashboard");
const updated = await store.moveTask(req.params.id, "todo");
res.json(updated);