Commit 08dfdb0
go: change LogOptions.Ephemeral from bool to *bool
Previously, LogOptions.Ephemeral was a plain bool, so callers could not
distinguish between 'not set' (zero value false) and an explicit false.
This meant the SDK could never send ephemeral=false on the wire, always
deferring to the server default.
Change the field to *bool so nil means 'not set' (omitted from the
JSON-RPC payload) and a non-nil value is forwarded as-is. This is
consistent with how the other SDKs (Node, Python, .NET) handle the
field.
BREAKING CHANGE: Callers must now use copilot.Bool(true) or
copilot.Bool(false) instead of a bare bool literal.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b67e3e5 commit 08dfdb0
3 files changed
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
981 | 981 | | |
982 | 982 | | |
983 | 983 | | |
984 | | - | |
| 984 | + | |
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
715 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
716 | 717 | | |
717 | 718 | | |
718 | 719 | | |
| |||
730 | 731 | | |
731 | 732 | | |
732 | 733 | | |
733 | | - | |
| 734 | + | |
734 | 735 | | |
735 | 736 | | |
736 | 737 | | |
737 | 738 | | |
738 | 739 | | |
739 | 740 | | |
740 | 741 | | |
741 | | - | |
742 | | - | |
| 742 | + | |
| 743 | + | |
743 | 744 | | |
744 | 745 | | |
745 | 746 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
0 commit comments