Skip to content

wait-for-pr-review panics when --timeout-seconds is too large for the deadline #2713

Closed

Description

@josecelano

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

Goal

Make every accepted value of --timeout-seconds run without a panic in the wait-for-pr-review poller, and report a value that cannot be represented as a usage error in the documented JSON form, with exit code 2.

Problem

The option accepts every positive 64-bit integer, and the poller then computes its deadline as Instant + Duration, which panics on overflow. Reproduced on the real binary: --timeout-seconds 18446744073709551615 and 9223372036854775807 exit 101 with a plain-text panic on stderr, which breaks the documented 0/1/2 exit codes and the JSON-only stderr, while 4611686018427387904 runs. The threshold depends on the platform's Instant range.

The specification, the reproduction and the fix options are in pull request #2716, which adds docs/issues/open/2713-2003-wait-for-pr-review-timeout-overflow-panic/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 2 commits that reference this issue on Nov 6, 2026
  5. added a commit that references this issue on Nov 10, 2026
  6. added 2 commits that reference this issue on Nov 10, 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