Add task summaries, closed-task search and a summary turn before discard
This commit is contained in:
+7
-1
@@ -177,7 +177,7 @@ function taskHead(rerender: () => void): Head {
|
||||
mergeIn.disabled = false;
|
||||
}
|
||||
};
|
||||
const discard = h("button", { class: "danger", disabled: busy, title: "Delete the worktree and branch without merging" }, "Discard");
|
||||
const discard = h("button", { class: "danger", disabled: busy, title: "The agent writes the task summary, then byre deletes the worktree and branch without merging" }, "Discard");
|
||||
discard.onclick = () =>
|
||||
confirmThen(`Discard "${task.title}"?`, "Discard", true, discard, async () => {
|
||||
await post("/api/tasks/{taskId}/discard", { path: { taskId: task.id } });
|
||||
@@ -1120,6 +1120,12 @@ function renderEvent(ev: ByreEvent, ctx: Ctx): HTMLElement | null {
|
||||
when,
|
||||
);
|
||||
|
||||
case "task.summary":
|
||||
return h("div", { class: "note" }, `${ev.actor} set the task summary `, when);
|
||||
|
||||
case "task.discard_started":
|
||||
return h("div", { class: "note" }, `${ev.actor} asked to discard the task; the agent writes the task summary first `, when);
|
||||
|
||||
case "task.discarded":
|
||||
return h("div", { class: "note" }, `${ev.actor} discarded the task `, when);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user