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

@ -213,6 +213,12 @@ async function runPipeline() {
claudeLoginError.value = false
pipelineStarting.value = true
try {
// Sync task execution_mode with current toggle state before running
const targetMode = autoMode.value ? 'auto_complete' : 'review'
if (task.value && task.value.execution_mode !== targetMode) {
const updated = await api.patchTask(props.id, { execution_mode: targetMode })
task.value = { ...task.value, ...updated }
}
await api.runTask(props.id)
startPolling()
await load()