Files
openclaw/scripts/pr-lib
chenyangjun-xy 15ae1ddb93 fix(plugin-sdk): reject malformed UTF-8 in live provider model catalog responses (#111766)
* fix: reject malformed UTF-8 in live provider model catalog responses

Add { fatal: true } to TextDecoder in readLiveModelCatalogJson so
invalid UTF-8 bytes throw a TypeError before JSON.parse instead of
silently becoming U+FFFD.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test(plugin-sdk): add fallback proof for malformed UTF-8 in live catalog

Adds a focused test that constructs raw bytes with an invalid 0xFE byte
inside a JSON string value and validates that buildLiveModelProviderConfig
catches the Typeerror and falls back to the static catalog rows.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(pr): classify auto-merge failures without ripgrep

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-27 18:03:09 -04:00
..