Commit 44ec87f
Forward enableManagedSettings in session.create (all SDKs) (#1925)
* Forward selfFetchManagedSettings in session.create across all SDKs
Threads an optional `selfFetchManagedSettings` flag from the SDK session
config through the `session.create` / `resumeSession` wire calls, so
consumers can opt the runtime into self-fetching enterprise managed
settings (bypass-permissions policy) at session bootstrap.
Extends the Node.js change from #1846 to every language SDK:
- nodejs: `selfFetchManagedSettings?: boolean` on `SessionConfigBase`,
forwarded in create/resume payloads.
- python: `self_fetch_managed_settings` kwarg on create/resume, forwarded
as `selfFetchManagedSettings`.
- go: `SelfFetchManagedSettings *bool` on `SessionConfig` /
`ResumeSessionConfig` and wire structs.
- dotnet: `SelfFetchManagedSettings` on `SessionConfigBase` (+ clone) and
wire records.
- rust: `self_fetch_managed_settings: Option<bool>` with builders and wire
structs.
- java: `selfFetchManagedSettings` on config, request classes, and builder.
Purely additive and opt-in; unset behaves exactly as before. Requires the
session `gitHubToken`; the runtime is expected to reject session creation
when omitted (fail-closed). Runtime enforcement lives in the runtime PR.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Rename selfFetchManagedSettings to enableManagedSettings
Follows up runtime rename github/copilot-agent-runtime#12118, which
renamed the `session.create` opt-in parameter `selfFetchManagedSettings`
to `enableManagedSettings` (wire name `enableManagedSettings`). The new
name reads as an "enable managed-settings enforcement" switch rather than
describing the fetch mechanism.
Renames the field/param across every SDK to match the new wire contract:
nodejs, python, go, dotnet, rust, java.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix gofmt and rustfmt formatting after field rename
The sed-based rename left misaligned struct-tag whitespace in go/types.go
(gofmt) and over-expanded Debug .field() blocks in rust/src/types.rs
(rustfmt). Reformat with the source formatters.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 953932a commit 44ec87f
14 files changed
Lines changed: 225 additions & 0 deletions
File tree
- dotnet/src
- go
- java/src/main/java/com/github/copilot
- rpc
- nodejs/src
- python/copilot
- rust/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
| 1150 | + | |
1150 | 1151 | | |
1151 | 1152 | | |
1152 | 1153 | | |
| |||
1357 | 1358 | | |
1358 | 1359 | | |
1359 | 1360 | | |
| 1361 | + | |
1360 | 1362 | | |
1361 | 1363 | | |
1362 | 1364 | | |
| |||
2696 | 2698 | | |
2697 | 2699 | | |
2698 | 2700 | | |
| 2701 | + | |
2699 | 2702 | | |
2700 | 2703 | | |
2701 | 2704 | | |
| |||
2796 | 2799 | | |
2797 | 2800 | | |
2798 | 2801 | | |
| 2802 | + | |
2799 | 2803 | | |
2800 | 2804 | | |
2801 | 2805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2861 | 2861 | | |
2862 | 2862 | | |
2863 | 2863 | | |
| 2864 | + | |
2864 | 2865 | | |
2865 | 2866 | | |
2866 | 2867 | | |
| |||
3285 | 3286 | | |
3286 | 3287 | | |
3287 | 3288 | | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
3288 | 3299 | | |
3289 | 3300 | | |
3290 | 3301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
| 735 | + | |
735 | 736 | | |
736 | 737 | | |
737 | 738 | | |
| |||
1095 | 1096 | | |
1096 | 1097 | | |
1097 | 1098 | | |
| 1099 | + | |
1098 | 1100 | | |
1099 | 1101 | | |
1100 | 1102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1247 | 1247 | | |
1248 | 1248 | | |
1249 | 1249 | | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
1250 | 1256 | | |
1251 | 1257 | | |
1252 | 1258 | | |
| |||
1668 | 1674 | | |
1669 | 1675 | | |
1670 | 1676 | | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
1671 | 1681 | | |
1672 | 1682 | | |
1673 | 1683 | | |
| |||
2122 | 2132 | | |
2123 | 2133 | | |
2124 | 2134 | | |
| 2135 | + | |
2125 | 2136 | | |
2126 | 2137 | | |
2127 | 2138 | | |
| |||
2211 | 2222 | | |
2212 | 2223 | | |
2213 | 2224 | | |
| 2225 | + | |
2214 | 2226 | | |
2215 | 2227 | | |
2216 | 2228 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
| 310 | + | |
309 | 311 | | |
310 | 312 | | |
311 | 313 | | |
| |||
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
215 | 219 | | |
216 | 220 | | |
217 | 221 | | |
| |||
966 | 970 | | |
967 | 971 | | |
968 | 972 | | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
969 | 996 | | |
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
1745 | 1746 | | |
1746 | 1747 | | |
1747 | 1748 | | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
1748 | 1779 | | |
1749 | 1780 | | |
1750 | 1781 | | |
| |||
1819 | 1850 | | |
1820 | 1851 | | |
1821 | 1852 | | |
| 1853 | + | |
1822 | 1854 | | |
1823 | 1855 | | |
1824 | 1856 | | |
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
| |||
981 | 985 | | |
982 | 986 | | |
983 | 987 | | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
984 | 1011 | | |
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
1876 | 1877 | | |
1877 | 1878 | | |
1878 | 1879 | | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
1879 | 1912 | | |
1880 | 1913 | | |
1881 | 1914 | | |
| |||
1955 | 1988 | | |
1956 | 1989 | | |
1957 | 1990 | | |
| 1991 | + | |
1958 | 1992 | | |
1959 | 1993 | | |
1960 | 1994 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1472 | 1472 | | |
1473 | 1473 | | |
1474 | 1474 | | |
| 1475 | + | |
1475 | 1476 | | |
1476 | 1477 | | |
1477 | 1478 | | |
| |||
1683 | 1684 | | |
1684 | 1685 | | |
1685 | 1686 | | |
| 1687 | + | |
1686 | 1688 | | |
1687 | 1689 | | |
1688 | 1690 | | |
| |||
0 commit comments