kin: auto-commit after pipeline

This commit is contained in:
Gros Frumos 2026-03-16 23:34:22 +02:00
parent 0ccd451b4b
commit 04cbbc563b
7 changed files with 324 additions and 7 deletions

View file

@ -386,6 +386,8 @@ async function load() {
try {
loading.value = true
project.value = await api.project(props.id)
loadMode()
loadAutocommit()
} catch (e: any) {
error.value = e.message
} finally {
@ -407,8 +409,6 @@ watch(() => props.id, () => {
onMounted(async () => {
await load()
loadMode()
loadAutocommit()
await loadPhases()
await loadEnvironments()
})
@ -531,6 +531,8 @@ async function runTask(taskId: string, event: Event) {
if (!confirm(`Run pipeline for ${taskId}?`)) return
runningTaskId.value = taskId
try {
// Sync task execution_mode with current project toggle state before running
await api.patchTask(taskId, { execution_mode: autoMode.value ? 'auto_complete' : 'review' })
await api.runTask(taskId)
await load()
if (activeTab.value === 'kanban') checkAndPollKanban()