feat(KB-039): complete Step 2 — frontend API client and hook for usage data

This commit is contained in:
gsxdsm
2026-03-29 21:46:09 -07:00
parent 81cf41ba50
commit 63f530aac3
9 changed files with 890 additions and 150 deletions

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);