This repository was archived by the owner on Oct 22, 2025. It is now read-only.
Commit 65d1d68
fix: ensure JSON encoding uses consistent request/response format (#1158)
The JSON encoding path in handleAction was expecting a raw array for action arguments,
while the client was sending {a: [...]} format. This caused "Invalid JSON" errors when
explicitly specifying encoding: "json" in the client.
This fix ensures both JSON and CBOR encodings use the same ActionRequestSchema format
for consistency, matching the client's expected behavior.
🤖 Generated with [opencode](https://opencode.ai)
Co-authored-by: opencode <noreply@opencode.ai>1 parent b90093d commit 65d1d68
1 file changed
+16
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
434 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
435 | 446 | | |
436 | 447 | | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | 448 | | |
444 | 449 | | |
445 | 450 | | |
| |||
496 | 501 | | |
497 | 502 | | |
498 | 503 | | |
499 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
500 | 508 | | |
501 | 509 | | |
502 | 510 | | |
| |||
0 commit comments