Skip to content

Commit 83d1c26

Browse files
willglasCopilot
andcommitted
fix(dotnet): Map SuppressResumeEvent to disableResume on the wire
The .NET SDK's JsonSerializerDefaults.Web camelCases SuppressResumeEvent to suppressResumeEvent, but the server expects disableResume. Add an explicit JsonPropertyName attribute to produce the correct wire name. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3641197 commit 83d1c26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dotnet/src/Client.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2385,7 +2385,7 @@ internal record ResumeSessionRequest(
23852385
bool? EnableHostGitOperations,
23862386
bool? EnableSessionStore,
23872387
bool? EnableSkills,
2388-
bool? SuppressResumeEvent,
2388+
[property: JsonPropertyName("disableResume")] bool? SuppressResumeEvent,
23892389
bool? Streaming,
23902390
bool? IncludeSubAgentStreamingEvents,
23912391
IDictionary<string, McpServerConfig>? McpServers,

0 commit comments

Comments
 (0)