Show agents by branch, and a task's pull requests
Online agents carry their branch. The dashboard shows an agent on a branch without a task, the pull request sidebar and the Steer prefill find agents on the head branch or the linked task, and the task page lists the pull requests linked to it or closing it with a keyword. A task closed by a merge says which pull request closed it.
2 decisions
An agent works on a pull request when its branch is the pull request's head or its task is the linked task.
Why
- Agents can now work on a branch without a task, so matching by task alone hid them.
Touches
mentions.tsxpull.tsxpull-reasoning.tsx
A task's pull requests are those linked by task_id plus those whose title or body closes it with a keyword, found at read time.
Why
- No work_links table exists; closing keywords are parsed where they are needed.
Assumes
- Twenty pull requests per task is enough for the sidebar.
Touches
pulls.tstask.tsx
10 files changed · +82 −15
apps/backend/contract/handles.ts+2 −0
apps/backend/contract/views.ts+2 −0
apps/backend/index.ts+4 −2
apps/backend/pulls.ts+9 −0
apps/backend/test/pushes.test.ts+11 −1
apps/frontend/components/mentions.tsx+5 −0
apps/frontend/routes/dashboard.tsx+4 −0
apps/frontend/routes/pull-reasoning.tsx+2 −2
apps/frontend/routes/pull.tsx+13 −1
apps/frontend/routes/task.tsx+30 −9