Finding / flue

2026-10-13-flue-2-2-0-to-2-2-2-carried-two-regressions-ai-gateway-claude-ids-fixed-the-same-afternoon-and

2.2.0 to 2.2.2 carried two regressions: AI Gateway Claude ids (fixed the same afternoon) and stale finish-hook state (fixed only in 2.3.0). The Pi 0.87.1 bump brought in Pi’s 0.84.3 rename of AI Gateway Claude ids to dotted versions. cloudflare-ai-gateway/claude-sonnet-4-6 stopped resolving in 2.2.0, resolved but got a 404 from Anthropic in 2.2.1, and worked in 2.2.2: three stables in under three hours. Separately, from 2.2.0 a useAgentFinish callback saw agent state from before the response’s final turn. The documented usePersistentState guard (“append a reminder once”) therefore never saw its own write and re-appended on every cycle, each cycle a further model turn, until the 32-cycle ceiling failed the response.

Channel: tagged-release. Half: defect. Date: 2026-09-28 (2.2.0, 2.2.1, 2.2.2) to 2026-10-12 (2.3.0).

Operator consequence: Skip 2.2.0 and 2.2.1 if you route Claude through cloudflare-ai-gateway. Skip all of 2.2.x if any agent has a finish hook with a persistent-state guard, because on those versions it can burn up to 32 extra model turns and then fail. 2.3.0 fixes both. npm will not warn you off any of these versions.

Receipt

Finding metadata

Run: 2026-10-13-profile-refresh-2026-09-21_2026-10-13-frontier-v0

Finding ID: 2026-10-13-flue-2-2-0-to-2-2-2-carried-two-regressions-ai-gateway-claude-ids-fixed-the-same-afternoon-and

Profile citations

  • Flue / claim / two-two-regressions-fixed
  • Flue / posture / accessibility

Source links

Primary links, including exact changelog lines when available.