Switch to the transcript after sending a review finding to fix

This commit is contained in:
Ian Gulliver
2026-10-15 20:42:08 -07:00
parent cb2188e3cf
commit 189681fe47
4 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
import { get, post, type ByreEvent, type Schemas } from "./api.js";
import { ago, errorText, h, replace, showAlert } from "./dom.js";
import { markdown } from "./markdown.js";
import { onEach, pickReview, state } from "./state.js";
import { focusTask, onEach, pickReview, state } from "./state.js";
type Review = Schemas["Review"];
@@ -226,6 +226,7 @@ function fixButton(taskId: string, r: Review, f: Record<string, unknown>, where:
await post("/api/tasks/{taskId}/sessions", { path: { taskId }, body: { prompt: text } });
}
replace(button, "sent");
focusTask(taskId);
} catch (err) {
button.disabled = false;
void showAlert(errorText(err));