beads/internal/linear
Kevin Glynn 50b0617405
fix(linear): arm rate-limit breaker after successful calls (#4778)
* fix(linear): arm rate-limit breaker after successful calls

Co-authored-by: Medhaug <Medhaug@users.noreply.github.com>

* fix(linear): expire rate limit breaker after reset

Agent-Signature: codex-gpt-5.6-sol-medium on behalf of matt wilkie

* fix(linear): parse reset header as epoch milliseconds

Agent-Signature: codex-gpt-5.6-sol-medium on behalf of matt wilkie

* fix(linear): require valid reset to arm breaker

Agent-Signature: codex-gpt-5.6-sol-medium on behalf of matt wilkie

* fix(linear): bound rate limit reset horizon

Agent-Signature: codex-gpt-5.6-sol-medium on behalf of matt wilkie

* test(linear): send valid reset header so breaker arms in reconcile mock

The breaker arming contract now requires a valid future
X-RateLimit-Requests-Reset alongside low remaining quota (48b0c6725).
The parent-reconcile mock only sent the remaining header, so the
breaker never armed and TestReconcileParents_AbortsOnRateLimit got no
abort error.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Medhaug <Medhaug@users.noreply.github.com>
Co-authored-by: matt wilkie <maphew@gmail.com>
2026-07-14 13:13:52 -07:00
..
client.go fix(linear): arm rate-limit breaker after successful calls (#4778) 2026-07-14 13:13:52 -07:00
client_test.go fix(linear): arm rate-limit breaker after successful calls (#4778) 2026-07-14 13:13:52 -07:00
fieldmapper.go fix(linear): push bead labels to Linear on sync --push (GH#3753) (#3776) 2026-07-07 06:27:16 -07:00
idempotency.go feat(linear): add idempotency markers to prevent duplicate issue creation 2026-05-02 01:00:09 -04:00
idempotency_test.go fix(linear): use OAuth auth header for idempotent create (#4777) 2026-07-14 10:19:35 -07:00
mapping.go fix(linear): push bead labels to Linear on sync --push (GH#3753) (#3776) 2026-07-07 06:27:16 -07:00
mapping_test.go fix(linear): push bead labels to Linear on sync --push (GH#3753) (#3776) 2026-07-07 06:27:16 -07:00
oauth.go fix(linear): address maintainer feedback on OAuth client-credentials PR 2026-05-02 19:04:20 -04:00
oauth_test.go feat(linear): add OAuth client-credentials support 2026-05-02 09:35:08 -04:00
parent_reconcile.go fix(linear): wire parent-child relationships to Linear's parent field (#3930) 2026-07-06 22:16:07 -07:00
parent_reconcile_test.go fix(linear): arm rate-limit breaker after successful calls (#4778) 2026-07-14 13:13:52 -07:00
staleness.go fix(linear): clean staleness lint 2026-05-02 18:38:36 -07:00
staleness_test.go feat(linear): add ambient staleness signal for auto-fresh data 2026-05-02 20:08:33 -04:00
synclock.go fix(linear): clean sync lock lint 2026-05-02 18:38:36 -07:00
synclock_test.go fix(linear): keep lock file stable across Release cycles 2026-05-02 18:55:08 -04:00
synclock_unix.go feat(linear): add per-workspace concurrency lock on sync 2026-05-02 01:02:55 -04:00
synclock_wasm.go feat(linear): add per-workspace concurrency lock on sync 2026-05-02 01:02:55 -04:00
synclock_windows.go feat(linear): add per-workspace concurrency lock on sync 2026-05-02 01:02:55 -04:00
tracker.go fix(linear): avoid double-format skip mismatch in batch push (#4779) 2026-07-14 12:52:40 -07:00
tracker_test.go fix(linear): avoid double-format skip mismatch in batch push (#4779) 2026-07-14 12:52:40 -07:00
types.go fix(linear): arm rate-limit breaker after successful calls (#4778) 2026-07-14 13:13:52 -07:00