opencode/packages/cli-rs/script/rust
Simon Klee d6a1d29a68
fix(cli-rs): tag message unions whose members are unions
Session.Message.Info has a Compaction member that is itself a union tagged by status, so the generator fell back to an untagged enum. serde then decoded an assistant message as the first member that fits (AgentSelected). Nested unions now join the outer tag when all their objects share one value.
2026-11-04 18:48:51 +01:00
..
methods.ts chore(cli-rs): format the API generator and type the oracle's fetch 2026-11-04 18:20:48 +01:00
types.ts fix(cli-rs): tag message unions whose members are unions 2026-11-04 18:48:51 +01:00