Skip to content

Pick up issue edits and new comments while the issue's task is queued or running #3920

Backlog

Description

@integry

Problem

When an issue's task has already started (the issue has AI-processing and an agent is planning or implementing), later changes to the issue are ignored:

  • edits to the issue body (for example a scope change from the maintainer), and
  • new comments on the issue.

The run finishes against the text it started with, and the change is silently lost unless someone notices and repeats it as a PR comment after the PR opens. Example: #3919's body was edited and commented on a few minutes after the AI label was added ("idle stop on by default"); the running task does not see it.

Wanted

  • Detect body edits and new comments by authorised users on an issue whose task is queued or running.
  • Deliver them to the run. If the agent session is still running, pass the update in as a follow-up message at the next safe point (the same mechanism PR follow-ups use), labelled as an update to the issue, with a diff of the body change. If the task is queued, start it with the latest issue text.
  • After the PR opens, treat further issue comments like PR follow-ups (or point the user to the PR), so nothing falls between the two.
  • Ignore noise. Skip bot comments, ProPR's own edits, and edits that change only labels or formatting. Respect the existing follow-up ignore keywords and trigger access rules.
  • Make it visible. The task timeline shows "Issue updated while running: applied" (or "not applied", with the reason), and the PR description mentions late changes the run picked up.

Acceptance

Tests cover: an edit during planning, a comment during implementation, an edit while the task is queued, a bot comment (ignored), and an unauthorised commenter (ignored).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions