Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
389 B
Raw Blame
-- Build the new guard before retiring the issue-wide guard.
CREATE UNIQUE INDEX CONCURRENTLY idx_one_pending_task_per_issue_agent_thread
    ON agent_task_queue (issue_id, agent_id, COALESCE(comment_thread_id, '00000000-0000-0000-0000-000000000000'::uuid))
    WHERE status IN ('queued', 'dispatched')
       OR (status = 'deferred' AND context->>'channel_issue_media_pending' = 'true');