feat: task cancellation (wip)

This commit is contained in:
Shivering Ocelot committed 2026-05-30 17:51:49 -05:00
1 parent 25b5fbd22a
commit 77addb889d
10 files changed
+319 -60

No files matched your search

+8
View File
@@ -64,6 +64,11 @@
}
};
async function cancelRun (runId) {
const res = await backend.sendAction("cancel-agent-run", {runId});
console.log(`Cancelled run ${runId}`, res);
};
onMounted(async () => {
try {
const res = await backend.sendAction("get-agent-runs");
@@ -104,6 +109,9 @@
<span :class="['run-status', run.done ? 'status-done' : 'status-running']">
{{ getStatusBadge(run) }}
</span>
<button v-if="!run.done" @click="cancelRun(run.id)">
Cancel
</button>
</div>
<div v-if="expandedRunId === run.id" class="run-details">
<div class="detail-row">