Switch to the transcript after sending a review finding to fix
This commit is contained in:
Vendored
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user