Skip to content

Epic PR status: show "needs you" when a sub-PR is stuck or waits to be merged, instead of "#N starts next" #3589

Closed

Description

@integry

Problem

An open epic PR keeps the working state and the line 🔨 N of M issues merged · #X starts next while nothing is running and its only open sub-PR needs a person. The epic title keeps a working circle (◔/◑) and never shows ⚠️.

Observed on epic PR #3563 (body edit history):

Expected

As documented in docs/docs/features/pr-status.md (Epic pull requests): the epic is needs_attention when nothing runs and a sub-PR needs you or is ready and waits to be merged into the epic branch, e.g. ⚠️ … #3580 (issue #3551) waits to be merged into the epic branch. "#X starts next" is right only when the queue can really start #X now.

Acceptance criteria

  • With no running work and an open sub-PR in needs_attention, the epic is needs_attention naming that sub-PR, for sequential, parallel and graph queues.
  • With no running work and an open sub-PR that is ready, the epic is needs_attention with the "waits to be merged" reason.
  • A pending issue makes the epic working ("starts next") only when the queue can dispatch it now: its prerequisites are merged, the queue is not waiting for an unmerged sub-PR and has a free slot.
  • The epic title slot follows the same state (⚠️ in the cases above).
  • Regression tests reproduce the ◕ 20/20 [Epic] Plugin system: manifest, handlers, commands and official plugins #3563 situations (sub-PR at ⚠️ with pending issues behind it; sub-PR at ✅ waiting for merge) and fail on the current code.

Implementation

The state is decided in packages/core/src/services/pullRequestStatus/pullRequestStatus.ts (epic branch, around the epic.nextIssueQueued && !epic.queuePaused check, which is evaluated before the child needs_attention / ready checks) and nextIssueQueued is computed in pullRequestStatusEpicFacts.ts. Make nextIssueQueued mean "dispatchable now" for every queue mode (the graph and parallel modes currently count any pending issue), or evaluate child attention/ready first when the next issue cannot start. Keep the documented precedence otherwise. Update docs/docs/features/pr-status.md only if wording there is wrong.

Notes

ProPR runs on SQLite only: do not add code or tests for other databases. Do not change how the queue itself dispatches issues; this is a status computation fix.

Activity

  1. propr-dev commented on Nov 17, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3589/claude-opus-5-5-epic-pr-status-show-needs-20261117-0116-9vt
    • Base Branch: 3589-epic-0-9-y3w
    • Worktree: issue-3589-20261117-0116-claude-opus-5-5-9vt

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions