Branch from a pull request without a task, and assign a pull request's branch
Branching from a point in a pull request now creates a branch named from the title and a pull request linked to the same task, with no new task. Assigning on a pull request hands the agent its head branch, with its linked task when that task is open.
2 decisions
Branching from a pull request creates a branch named from the title and a pull request linked to the original's task; it creates no task.
Why
- Every alternative path used to become a new task, which tasks were never meant to track.
- Branch names are free, so a readable slug replaces tasks/<m>.
Touches
index.tshandles.tspull-reasoning.tsx
Assigning through a mention hands over work: a task with tasks/<n>, or a pull request's head branch with its open linked task, never the default or another task's branch.
Why
- Assign only worked with a task, so branching without a task would have lost it.
Touches
mentions.tswire.tsrefs.mjs
12 files changed · +63 −42
apps/backend/contract/handles.ts+3 −3
apps/backend/index.ts+14 −8
apps/backend/mentions.ts+19 −7
apps/backend/test/direction-analytics.test.ts+1 −1
apps/backend/test/presence.test.ts+11 −9
apps/cli/refs.mjs+1 −1
apps/frontend/routes/llms-txt.ts+1 −1
apps/frontend/routes/pull-reasoning.tsx+4 −4
apps/frontend/routes/pull.tsx+4 −4
docs/ref-protocol.md+2 −2
packages/protocol/test/wire.test.ts+1 −0
packages/protocol/wire.ts+2 −2