Files
openclaw/extensions/clawrouter
Monkey-wusky ea6ed38e20 fix(clawrouter): cancel non-OK usage response body before throwing (#109525)
* fix(clawrouter): cancel non-OK usage response body before throwing

When fetchClawRouterUsage receives a non-OK response, it throws
without cancelling the response body.  The finally block calls
release() which cleans up the dispatcher, but the unconsumed
body stays open.

Cancel the body before throwing, matching the pattern in
guard-adapters (#109196) and fetchOpenRouterModels.

* test: use explicit ClawRouter placeholder token

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-16 23:16:25 -07:00
..

ClawRouter

Managed multi-provider model routing and quota reporting for OpenClaw.

See the ClawRouter provider docs.