feat(dispatch): branch off parent PR when blocker has open PR #462
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#462
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As an operator, I want agent-runner to detect at dispatch time whether any blocker of the dispatched issue has an open PR, and if so, branch off that PR's head SHA (instead of
main), so that the resulting PR auto-stacks on the parent and the existing rebase cascade handles everything downstream.Acceptance criteria
Detection
issues.closedpropagator) — i.e. don't stack on a non-PR blockerBranch + PR setup
pr/<parent>(latest head SHA), notmainstacked on #<parent>so existingpr-deps.tsmachinery picks it upmain)${parent_pr}available to the prompt template (Phase 2b)Tests
main-base behaviourOut of scope
/ready-stack)References
apps/server/src/domain/agent/agent-runner.tsapps/server/src/infrastructure/vcs/workdir.tsapps/server/src/domain/workflow/pr-deps.ts#461