xworkmate-bridge/internal
Haitao Pan c7b2f8ee3a fix(acp): treat numeric gateway codes as unknown-method so session.prepare falls back
A gateway that doesn't implement xworkmate.session.prepare returns an
"unknown method: xworkmate.session.prepare" error. isOpenClawUnknownMethodError
gated on a string code allowlist {"", INVALID_REQUEST, METHOD_NOT_FOUND}, but real
gateways send a numeric JSON-RPC code (e.g. -32002 / -32601) which shared.StringArg
stringifies to "-32002". The matcher then returned false, so the graceful fallback
(openClawFallbackSessionPreparePayload) never fired and every turn hard-failed with
"-32002: unknown method: xworkmate.session.prepare".

Match on the unambiguous message ("unknown method" + the method name) instead of the
stringified numeric code. Add a regression test covering numeric codes and guarding
against swallowing unrelated errors / other method names.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 11:04:08 +08:00
..
acp fix(acp): treat numeric gateway codes as unknown-method so session.prepare falls back 2026-06-26 11:04:08 +08:00
desktop fix(desktop): time out ICE gathering 2026-06-13 07:10:28 +08:00
gatewayruntime fix: stabilize gateway device token reissue 2026-06-18 14:48:03 +08:00
geminiadapter fix: remove unused functions and dead code to pass staticcheck 2026-06-05 18:43:15 +08:00
hermesadapter fix: structure hermes empty response failures 2026-04-29 19:26:58 +08:00
memory Initial standalone ACP bridge repository 2026-04-09 09:49:48 +08:00
opencodeadapter perf: optimize webrtc mouse input throttle, ffmpeg encoding and http connection pooling 2026-06-04 11:28:00 +08:00
router fix: remove unused functions and dead code to pass staticcheck 2026-06-05 18:43:15 +08:00
service Support review bridge auth token 2026-05-30 10:34:51 +08:00
shared chore: remove unused legacy bridge helpers 2026-06-12 14:49:51 +08:00
skills fix: remove unused functions and dead code to pass staticcheck 2026-06-05 18:43:15 +08:00