kin: auto-commit after pipeline
This commit is contained in:
parent
0ccd451b4b
commit
04cbbc563b
7 changed files with 324 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue