Skip to content

Restore a missing PR review summary when confirming a published review #1326

Not planned

Description

@eowca

A PR body can keep its empty Review placeholder after GitHub has accepted the review. Even an explicit loopzero review --repost reports the recovered verdict without restoring the missing summary.

In an offline replay of 52ddf36e, the review POST accepted an approval before the fake returned a timeout. Both loopzero review and loopzero review --repost exited 0 with one review POST and zero body PATCHes. Both exact-review confirmation branches return before the summary updater. Once a normal summary PATCH has succeeded, the updater itself appends unconditionally. src/loopzero/cli.py:774 · src/loopzero/cli.py:814 · src/loopzero/cli.py:521

Use the same best-effort summary update after confirming a live publication. Read the live body and add the existing summary line only if it is absent from the Review section. Keep the existing serialization for body writers once #1230 lands.

Acceptance

  • A lost acknowledgement after the review POST, or an interruption before the summary PATCH, leaves one review and one summary line after recovery, without running the reviewer again or posting a second review.
  • If the summary PATCH already landed before the acknowledgement was lost, recovery leaves the line unchanged and sends no unnecessary PATCH. Preserve unrelated PR sections.
  • Update the recovery assertion that currently expects zero body writes and cover both missing and already-present summaries with the review transport fake. tests/test_review_recovery.py:26 · tests/test_review_recovery.py:78

Activity

  1. eowca commented on Nov 26, 2026

    @eowca
    ContributorAuthor

    Not planned for now: its PR #1403 was closed on cost (#575 (comment)). Reopen with new evidence of a material, measured saving or failure.

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