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 } 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";
const severities = ["critical", "high", "medium", "low", "info"];
export function isReviewEvent(ev) {
return ev.kind.startsWith("review.");
@@ -160,6 +160,7 @@ function fixButton(taskId, r, f, where) {
await post("/api/tasks/{taskId}/sessions", { path: { taskId }, body: { prompt: text } });
}
replace(button, "sent");
focusTask(taskId);
}
catch (err) {
button.disabled = false;