File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,11 +58,10 @@ fn antigravity_version() -> String {
5858}
5959
6060fn metadata_platform ( ) -> & ' static str {
61- if cfg ! ( target_os = "windows" ) {
62- "WINDOWS"
63- } else {
64- "MACOS"
65- }
61+ // The Cloud Code backend currently rejects OS-specific string enum values
62+ // such as MACOS, WINDOWS, and LINUX for ClientMetadata.Platform. Use the
63+ // string value that is accepted across platforms instead of varying by OS.
64+ "PLATFORM_UNSPECIFIED"
6665}
6766
6867fn user_agent ( ) -> String {
Original file line number Diff line number Diff line change @@ -107,11 +107,10 @@ struct FetchAvailableQuotaInfo {
107107}
108108
109109fn metadata_platform ( ) -> & ' static str {
110- if cfg ! ( target_os = "windows" ) {
111- "WINDOWS"
112- } else {
113- "MACOS"
114- }
110+ // The Cloud Code backend currently rejects OS-specific string enum values
111+ // such as MACOS, WINDOWS, and LINUX for ClientMetadata.Platform. Use the
112+ // string value that is accepted across platforms instead of varying by OS.
113+ "PLATFORM_UNSPECIFIED"
115114}
116115
117116fn antigravity_version ( ) -> String {
You can’t perform that action at this time.
0 commit comments