Skip to content

v0.4.0

Choose a tag to compare

@karlkfi karlkfi released this 18 Jul 19:03

Watcher: tolerate transient GitHub API failures

The background watcher no longer wakes your session with a false error event when GitHub has a brief hiccup. gh failures are now classified:

  • Permanent failures (failing gh auth status, a definitively unresolvable PR) still exit immediately with the error event.
  • Transient failures are retried with backoff over a generous horizon (default 15 minutes) before giving up. Transient gaps are logged to stderr only — never the stdout wake payload — so the session stays asleep.

Closes #20.

Configuration change

PR_SENTINEL_GH_RETRIES has been replaced by PR_SENTINEL_GH_RETRY_HORIZON (seconds to retry transient gh failures before an error event; default 900). Update any environment overrides that referenced the old knob.

Full changelog: v0.3.2...v0.4.0