Make merge dialog Enter follow the task's offered merge action

This commit is contained in:
Ian Gulliver
2026-10-21 11:59:52 -07:00
parent abe4d7c9d5
commit c7d0a1722a
7 changed files with 240 additions and 198 deletions
@@ -0,0 +1,6 @@
UPDATE tasks SET ready = coalesce((
SELECT json_extract(e.payload, '$.merge') FROM events e
WHERE e.task_id = tasks.id AND e.kind = 'task.ready'
ORDER BY e.seq DESC LIMIT 1
), 'complete')
WHERE ready = 'merge';