Skip to content

wait-for-pr-review waits without limit for the output of a gh call that already exited #2712

Closed

Description

@josecelano

Parent EPIC: #2003 - Overhaul: Automation Tools and AI Agent Guardrails

Goal

Make the --timeout-seconds budget and the SIGINT and SIGTERM handling of the wait-for-pr-review poller hold on every path of a gh call, including the one where gh exits successfully but a descendant it started still holds its output pipes open.

Problem

After a successful gh exit, the poller waits for the end of the child's stdout and stderr with no limit and checks neither the deadline nor the signal flag. The error path already bounds this wait with a 200 ms grace period. Reproduced on the real binary with a fake gh that exits at once and leaves a background sleep 25 holding the pipes: a 3 s budget took 25.0 s, and a SIGTERM sent at 3.0 s was honored at 25.0 s. It was not observed with the real gh.

The specification, the reproduction and the fix options are in pull request #2716, which adds docs/issues/open/2712-2003-wait-for-pr-review-pipe-wait-after-exit/ISSUE.md.

Activity

  1. added
    Bug
    on Nov 4, 2026
  2. added 2 commits that reference this issue on Nov 4, 2026
  3. self-assigned this
    on Nov 6, 2026
  4. added a commit that references this issue on Nov 6, 2026
  5. added a commit that references this issue on Nov 6, 2026
  6. added a commit that references this issue on Nov 6, 2026
  7. added 2 commits that reference this issue on Nov 6, 2026
  8. added 2 commits that reference this issue on Nov 6, 2026
  9. added a commit that references this issue on Nov 9, 2026
  10. added 4 commits that reference this issue on Nov 9, 2026
  11. added 4 commits that reference this issue on Nov 9, 2026
  12. added 4 commits that reference this issue on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AutomationBug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions