Commit 2783121
committed
fix(ui): add rename_all_fields to HelixEvent so exit_code serializes as exitCode
Serde's rename_all on an enum only renames variant names (Output→output,
Done→done), not fields inside struct variants. Without rename_all_fields,
Done { exit_code } serializes as "exit_code" in JSON, but the frontend
reads msg.data.exitCode — always undefined — making every command block
show status "error" regardless of the real exit code.
Fix: add rename_all_fields = "camelCase" at the container level (serde
≥1.0.185, we use 1.0.228) so exit_code → exitCode in the Done variant.
https://claude.ai/code/session_01E7C1r4saaKwguu88r6sqt41 parent 995140b commit 2783121
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments